Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001736/0.001736, allocations: 75.05 kB / 21.24 MB, free: 0.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002128/0.002128, allocations: 162.5 kB / 24.5 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 177.1 MB / 204.7 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002114, allocations: 64.95 kB / 325.5 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1048, allocations: 53.39 MB / 378.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004352/0.1092, allocations: 2.691 MB / 381.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1107, allocations: 0.7399 MB / 382.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.1109, allocations: 4 kB / 382.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.1111, allocations: 55.5 kB / 382.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000181/0.1112, allocations: 91.12 kB / 382.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.1116, allocations: 103.8 kB / 382.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.112, allocations: 366.4 kB / 383 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.1122, allocations: 83.67 kB / 383 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.1123, allocations: 147.5 kB / 383.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.1125, allocations: 135.3 kB / 383.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.969e-05/0.1126, allocations: 28 kB / 383.4 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.506e-05/0.1126, allocations: 32 kB / 383.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.377e-05/0.1127, allocations: 71.75 kB / 383.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1129, allocations: 139.4 kB / 383.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004078/0.1133, allocations: 366.5 kB / 383.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1133, allocations: 0 / 383.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1133, allocations: 0 / 383.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1133, allocations: 0 / 383.9 MB, free: 10.41 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001001/0.1143, allocations: 0.5379 MB / 384.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.1143, allocations: 11.98 kB / 384.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.171e-05/0.1144, allocations: 40.64 kB / 384.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.1148, allocations: 214.6 kB / 384.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.1149, allocations: 128 kB / 384.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/0.115, allocations: 28.38 kB / 384.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.1155, allocations: 353.5 kB / 385.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.1156, allocations: 3.938 kB / 385.2 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.1156, allocations: 12 kB / 385.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.1156, allocations: 8 kB / 385.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003657/0.116, allocations: 190.5 kB / 385.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1176, allocations: 0.958 MB / 386.4 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.1179, allocations: 146.6 kB / 386.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.1181, allocations: 76.75 kB / 386.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.1181, allocations: 4 kB / 386.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003311/0.1184, allocations: 213.2 kB / 386.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.1184, allocations: 4 kB / 386.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00104/0.1195, allocations: 301.4 kB / 387.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.155e-05/0.1196, allocations: 110.8 kB / 387.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/0.1198, allocations: 207.8 kB / 387.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.1198, allocations: 33.64 kB / 387.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.12, allocations: 188.4 kB / 387.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.12, allocations: 67.42 kB / 387.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.446e-05/0.1201, allocations: 61.64 kB / 387.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1203, allocations: 338.8 kB / 388.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.1204, allocations: 59.97 kB / 388.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.1206, allocations: 197.5 kB / 388.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.1209, allocations: 196.2 kB / 388.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1209, allocations: 0 / 388.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004379/0.1214, allocations: 272.5 kB / 388.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1214, allocations: 8 kB / 388.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.1214, allocations: 224 / 388.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002611/0.1217, allocations: 60.75 kB / 388.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.1219, allocations: 59.91 kB / 389 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.1233, allocations: 1.442 MB / 390.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.1236, allocations: 35.83 kB / 390.4 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1236, allocations: 8 kB / 390.4 MB, free: 3.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.1237, allocations: 147.8 kB / 390.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.539e-05/0.1238, allocations: 23.84 kB / 390.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.296e-05/0.1238, allocations: 21.97 kB / 390.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1238, allocations: 8.094 kB / 390.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1238, allocations: 0 / 390.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1238, allocations: 3.984 kB / 390.6 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.1241, allocations: 217.1 kB / 390.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1241, allocations: 0 / 390.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.1243, allocations: 39.91 kB / 390.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.1245, allocations: 56.77 kB / 391 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.1245, allocations: 3.984 kB / 391 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001226/0.1257, allocations: 1.288 MB / 392.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1257, allocations: 0 / 392.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006544/0.1264, allocations: 337 kB / 392.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.73e-05/0.1265, allocations: 31.88 kB / 392.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.1265, allocations: 8 kB / 392.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.1266, allocations: 11.98 kB / 392.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.691e-05/0.1267, allocations: 43.81 kB / 392.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1267, allocations: 4 kB / 392.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.1269, allocations: 149.5 kB / 392.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1269, allocations: 0 / 392.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003624/0.1272, allocations: 75.89 kB / 392.9 MB, free: 0.8359 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001253/0.1274, allocations: 111.2 kB / 393 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005632/0.1279, allocations: 286.5 kB / 393.3 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1279, allocations: 0 / 393.3 MB, free: 432 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.1282, allocations: 190.5 kB / 393.5 MB, free: 228 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.1285, allocations: 40.2 kB / 393.5 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.1301, allocations: 0.6508 MB / 394.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.1303, allocations: 150.9 kB / 394.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.364e-05/0.1304, allocations: 25.94 kB / 394.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.526e-05/0.1304, allocations: 28.48 kB / 394.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1304, allocations: 0 / 394.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Templates: time 0.007386/0.1378, allocations: 2.886 MB / 397.2 MB, free: 12.45 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.556020516087301]