Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 95.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001984/0.001984, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.568/1.568, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3855/0.3855, allocations: 34.26 MB / 295.3 MB, free: 0.6836 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.754e-05/2.909e-05, allocations: 6.312 kB / 377.3 MB, free: 2.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004947/0.004976, allocations: 2.903 MB / 380.2 MB, free: 64 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.006628, allocations: 0.6699 MB / 380.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.006799, allocations: 11.94 kB / 380.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.00699, allocations: 55.48 kB / 380.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002034/0.007194, allocations: 99.06 kB / 381 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001989/0.007392, allocations: 91.86 kB / 381.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005074/0.0079, allocations: 425.9 kB / 381.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.008109, allocations: 83.3 kB / 381.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000309/0.008418, allocations: 223.6 kB / 381.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.008643, allocations: 127.7 kB / 381.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.876e-05/0.008711, allocations: 36 kB / 382 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.673e-05/0.008778, allocations: 36 kB / 382 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.008862, allocations: 71.75 kB / 382.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.009022, allocations: 123.7 kB / 382.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005348/0.009556, allocations: 406.7 kB / 382.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.00956, allocations: 0 / 382.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.009562, allocations: 0 / 382.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.009569, allocations: 3.938 kB / 382.6 MB, free: 13.62 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001218/0.01079, allocations: 0.6712 MB / 383.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.01083, allocations: 8.031 kB / 383.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.01095, allocations: 64.69 kB / 383.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.01136, allocations: 221.2 kB / 383.6 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.299e-05/0.01139, allocations: 21.03 kB / 383.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.01145, allocations: 28.38 kB / 383.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000727/0.01217, allocations: 437.7 kB / 384 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.01218, allocations: 192 / 384 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.01222, allocations: 12.38 kB / 384.1 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.212e-05/0.01224, allocations: 11.94 kB / 384.1 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004965/0.01274, allocations: 214.5 kB / 384.3 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002314/0.01505, allocations: 1.296 MB / 385.6 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.01576, allocations: 275.7 kB / 385.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.01608, allocations: 144.1 kB / 386 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.01611, allocations: 4.234 kB / 386 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.01616, allocations: 49.55 kB / 386 MB, free: 10 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.473e-06/0.01616, allocations: 0 / 386 MB, free: 10 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002602/0.01876, allocations: 0.737 MB / 386.8 MB, free: 9.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.01881, allocations: 55.41 kB / 386.8 MB, free: 9.184 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.01916, allocations: 303.5 kB / 387.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.01921, allocations: 33.7 kB / 387.2 MB, free: 8.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.01939, allocations: 219.3 kB / 387.4 MB, free: 8.613 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.0195, allocations: 107.1 kB / 387.5 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.01961, allocations: 63.36 kB / 387.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003232/0.01994, allocations: 0.5157 MB / 388 MB, free: 7.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.02017, allocations: 83.95 kB / 388.1 MB, free: 7.828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.02046, allocations: 155.1 kB / 388.3 MB, free: 7.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005241/0.02098, allocations: 258.3 kB / 388.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.02099, allocations: 0 / 388.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001087/0.02207, allocations: 460.5 kB / 389 MB, free: 6.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.02209, allocations: 4 kB / 389 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.02211, allocations: 4 kB / 389 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.0232, allocations: 235.2 kB / 389.2 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.02336, allocations: 31.92 kB / 389.3 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005133/0.02849, allocations: 4.376 MB / 393.6 MB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.0287, allocations: 27.83 kB / 393.7 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.02872, allocations: 12 kB / 393.7 MB, free: 1.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.02894, allocations: 188.5 kB / 393.8 MB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.797e-05/0.02901, allocations: 39.8 kB / 393.9 MB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.841e-05/0.02911, allocations: 34.64 kB / 393.9 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.02911, allocations: 0 / 393.9 MB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.02912, allocations: 8.031 kB / 393.9 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.02913, allocations: 3.984 kB / 393.9 MB, free: 1.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.03077, allocations: 0.8287 MB / 394.8 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-06/0.03078, allocations: 3.938 kB / 394.8 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/0.03086, allocations: 15.98 kB / 394.8 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009472/0.03181, allocations: 227.2 kB / 395 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.03183, allocations: 8 kB / 395 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/0.03664, allocations: 4.376 MB / 399.4 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.03665, allocations: 7.922 kB / 399.4 MB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.03771, allocations: 0.5438 MB / 399.9 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.03781, allocations: 47.8 kB / 400 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.175e-05/0.03784, allocations: 8 kB / 400 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.03807, allocations: 19.98 kB / 400 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/0.03816, allocations: 35.88 kB / 400 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.03818, allocations: 8 kB / 400.1 MB, free: 11.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001955/0.03837, allocations: 207.1 kB / 400.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03837, allocations: 0 / 400.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004257/0.0388, allocations: 107.9 kB / 400.4 MB, free: 10.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001431/0.03894, allocations: 103.2 kB / 400.5 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.04006, allocations: 0.6544 MB / 401.1 MB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.04006, allocations: 4 kB / 401.1 MB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007157/0.04078, allocations: 0.5418 MB / 401.7 MB, free: 9.547 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.04114, allocations: 44.59 kB / 401.7 MB, free: 9.504 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000963/0.0421, allocations: 0.5026 MB / 402.2 MB, free: 8.973 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.04227, allocations: 159.2 kB / 402.4 MB, free: 8.801 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.423e-05/0.04236, allocations: 18.3 kB / 402.4 MB, free: 8.777 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.773e-05/0.0424, allocations: 16.5 kB / 402.4 MB, free: 8.762 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.0424, allocations: 0 / 402.4 MB, free: 8.762 MB / 378.7 MB Notification: Performance of Templates: time 0.01033/0.05273, allocations: 4.785 MB / 407.2 MB, free: 4.047 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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: 5.127769462997094]