Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 72.06 kB / 21.24 MB, free: 404 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 160.5 kB / 24.49 MB, free: 3.461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001547/0.001547, allocations: 48.45 kB / 319.4 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09811, allocations: 52.16 MB / 371.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004297/0.1024, allocations: 2.676 MB / 374.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.1038, allocations: 0.7049 MB / 375 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.1039, allocations: 12 kB / 375 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.1041, allocations: 47.5 kB / 375 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.1043, allocations: 91.12 kB / 375.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1046, allocations: 99.81 kB / 375.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004486/0.105, allocations: 374.4 kB / 375.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.1052, allocations: 87.67 kB / 375.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.1054, allocations: 143.5 kB / 375.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.1056, allocations: 127.3 kB / 375.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.909e-05/0.1057, allocations: 32 kB / 376 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.705e-05/0.1057, allocations: 28 kB / 376 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.414e-05/0.1058, allocations: 79.73 kB / 376.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.106, allocations: 135.4 kB / 376.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.1064, allocations: 366.5 kB / 376.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1064, allocations: 4 kB / 376.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1064, allocations: 0 / 376.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1064, allocations: 0 / 376.6 MB, free: 2.328 MB / 334.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.001034/0.1074, allocations: 0.5378 MB / 377.1 MB, free: 1.762 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1075, allocations: 8.922 kB / 377.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.69e-05/0.1075, allocations: 36.75 kB / 377.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1079, allocations: 206.6 kB / 377.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.1081, allocations: 136 kB / 377.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.1081, allocations: 28.38 kB / 377.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.1087, allocations: 349.5 kB / 377.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.1087, allocations: 3.938 kB / 377.8 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.1087, allocations: 12 kB / 377.9 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.1087, allocations: 8 kB / 377.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003505/0.1091, allocations: 186.5 kB / 378 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1107, allocations: 0.9697 MB / 379 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.111, allocations: 150.5 kB / 379.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.1112, allocations: 76.83 kB / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.1112, allocations: 0 / 379.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002956/0.1115, allocations: 213.2 kB / 379.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.223e-06/0.1115, allocations: 0 / 379.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001042/0.1125, allocations: 297.8 kB / 379.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/0.1126, allocations: 110.8 kB / 379.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.1128, allocations: 211.8 kB / 380 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.1128, allocations: 29.64 kB / 380.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1129, allocations: 188.4 kB / 380.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/0.113, allocations: 71.41 kB / 380.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-05/0.1131, allocations: 65.58 kB / 380.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1133, allocations: 338.8 kB / 380.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1134, allocations: 67.97 kB / 380.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.1136, allocations: 199.9 kB / 381 MB, free: 13.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002901/0.1139, allocations: 192.1 kB / 381.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1139, allocations: 4 kB / 381.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004571/0.1144, allocations: 268.5 kB / 381.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1144, allocations: 8.219 kB / 381.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1144, allocations: 4 kB / 381.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002659/0.1147, allocations: 52.81 kB / 381.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002229/0.1149, allocations: 51.91 kB / 381.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.1163, allocations: 1.449 MB / 383 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.1165, allocations: 31.91 kB / 383 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.1165, allocations: 8 kB / 383 MB, free: 11.37 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.0001515/0.1167, allocations: 145.8 kB / 383.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.003e-05/0.1167, allocations: 31.92 kB / 383.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.767e-05/0.1168, allocations: 25.95 kB / 383.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1168, allocations: 0 / 383.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.1168, allocations: 0 / 383.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1168, allocations: 0 / 383.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.1171, allocations: 225.1 kB / 383.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1171, allocations: 0 / 383.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.1172, allocations: 31.92 kB / 383.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001942/0.1174, allocations: 60.75 kB / 383.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.1174, allocations: 7.984 kB / 383.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.1187, allocations: 1.292 MB / 384.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1187, allocations: 0 / 384.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006437/0.1193, allocations: 321.8 kB / 385.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.25e-05/0.1194, allocations: 31.91 kB / 385.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.1194, allocations: 4 kB / 385.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.1196, allocations: 19.97 kB / 385.2 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/0.1197, allocations: 39.88 kB / 385.3 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.1197, allocations: 4 kB / 385.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.1198, allocations: 141.5 kB / 385.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1198, allocations: 8 kB / 385.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000349/0.1202, allocations: 83.78 kB / 385.5 MB, free: 8.754 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.00012/0.1203, allocations: 104.2 kB / 385.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005269/0.1208, allocations: 274.5 kB / 385.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1208, allocations: 0 / 385.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.1211, allocations: 191 kB / 386 MB, free: 8.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.1214, allocations: 39.92 kB / 386.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.1229, allocations: 0.6548 MB / 386.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.1231, allocations: 155 kB / 386.9 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.1231, allocations: 21.94 kB / 386.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.96e-05/0.1232, allocations: 20.5 kB / 386.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1232, allocations: 0 / 386.9 MB, free: 7.23 MB / 350.1 MB Notification: Performance of Templates: time 0.006871/0.1301, allocations: 2.889 MB / 389.8 MB, free: 4.387 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.267038515070453]