Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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.001067/0.001067, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.0009337/0.0009337, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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.002/1.002, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2928/0.2928, allocations: 34.86 MB / 296.3 MB, free: 0.5547 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(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_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.275e-05/2.47e-05, allocations: 3.156 kB / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003264/0.003288, allocations: 2.941 MB / 381.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.004352, allocations: 0.6931 MB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.004485, allocations: 4 kB / 382.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.004633, allocations: 59.42 kB / 382.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.004772, allocations: 95.06 kB / 382.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.004934, allocations: 95.86 kB / 382.6 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003186/0.005253, allocations: 430.1 kB / 383 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.005439, allocations: 83.34 kB / 383.1 MB, free: 13.71 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.005651, allocations: 231.5 kB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.005807, allocations: 123.7 kB / 383.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.646e-05/0.005853, allocations: 32 kB / 383.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.729e-05/0.00589, allocations: 36 kB / 383.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.216e-05/0.005943, allocations: 75.73 kB / 383.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.799e-05/0.006041, allocations: 123.7 kB / 383.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002705/0.006311, allocations: 263.1 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.006314, allocations: 4 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.006315, allocations: 0 / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.006321, allocations: 0 / 384 MB, free: 12.84 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.0007114/0.007032, allocations: 0.6559 MB / 384.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.007077, allocations: 8.031 kB / 384.7 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.309e-05/0.00716, allocations: 60.7 kB / 384.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.007398, allocations: 221.4 kB / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.007424, allocations: 21.03 kB / 385 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.007456, allocations: 32.38 kB / 385 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.007841, allocations: 362.5 kB / 385.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.007852, allocations: 8.188 kB / 385.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.007875, allocations: 8.375 kB / 385.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.007888, allocations: 11.94 kB / 385.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.008071, allocations: 123.8 kB / 385.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.009276, allocations: 1.178 MB / 386.7 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003451/0.009621, allocations: 231.7 kB / 386.9 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.009767, allocations: 96.11 kB / 387 MB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.009783, allocations: 4.234 kB / 387 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.009813, allocations: 37.62 kB / 387 MB, free: 9.605 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.914e-06/0.009815, allocations: 0 / 387 MB, free: 9.605 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001391/0.01121, allocations: 0.6119 MB / 387.6 MB, free: 8.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.01123, allocations: 51.41 kB / 387.7 MB, free: 8.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.01139, allocations: 274.7 kB / 388 MB, free: 8.633 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.872e-05/0.01141, allocations: 29.7 kB / 388 MB, free: 8.598 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.986e-05/0.0115, allocations: 215.3 kB / 388.2 MB, free: 8.383 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.01155, allocations: 95.17 kB / 388.3 MB, free: 8.289 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-05/0.01161, allocations: 67.31 kB / 388.4 MB, free: 8.215 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.01175, allocations: 0.5001 MB / 388.9 MB, free: 7.703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.081e-05/0.01182, allocations: 43.97 kB / 388.9 MB, free: 7.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.01192, allocations: 106.3 kB / 389 MB, free: 7.535 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.01211, allocations: 158.3 kB / 389.2 MB, free: 7.359 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.01211, allocations: 4 kB / 389.2 MB, free: 7.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004473/0.01256, allocations: 340.5 kB / 389.5 MB, free: 7.008 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.01257, allocations: 4 kB / 389.5 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.01258, allocations: 4 kB / 389.5 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006004/0.01318, allocations: 187.3 kB / 389.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.01329, allocations: 31.92 kB / 389.7 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.01587, allocations: 3.981 MB / 393.7 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.01598, allocations: 27.83 kB / 393.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.016, allocations: 20.06 kB / 393.7 MB, free: 2.508 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.0001114/0.01611, allocations: 176.5 kB / 393.9 MB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.01616, allocations: 35.8 kB / 394 MB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.0162, allocations: 34.64 kB / 394 MB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.01621, allocations: 4 kB / 394 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.01621, allocations: 3.938 kB / 394 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.01622, allocations: 0 / 394 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009125/0.01713, allocations: 0.6804 MB / 394.7 MB, free: 1.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.01713, allocations: 3.938 kB / 394.7 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.505e-05/0.01719, allocations: 19.94 kB / 394.7 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005036/0.01769, allocations: 183.2 kB / 394.9 MB, free: 1.301 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.01771, allocations: 7.984 kB / 394.9 MB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002363/0.02007, allocations: 3.974 MB / 398.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02007, allocations: 0 / 398.9 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.0206, allocations: 461 kB / 399.3 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.069e-05/0.02067, allocations: 47.77 kB / 399.4 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.0207, allocations: 8 kB / 399.4 MB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.02083, allocations: 23.98 kB / 399.4 MB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.632e-05/0.02091, allocations: 39.81 kB / 399.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.02092, allocations: 8 kB / 399.4 MB, free: 12.47 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001098/0.02103, allocations: 184.6 kB / 399.6 MB, free: 12.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02103, allocations: 0 / 399.6 MB, free: 12.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000372/0.0214, allocations: 111.8 kB / 399.7 MB, free: 12.18 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.000107/0.02151, allocations: 103.2 kB / 399.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006081/0.02212, allocations: 0.5646 MB / 400.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.02212, allocations: 0 / 400.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003492/0.02247, allocations: 0.495 MB / 400.9 MB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.02279, allocations: 44.98 kB / 400.9 MB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008843/0.02367, allocations: 486.8 kB / 401.4 MB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.02384, allocations: 96.61 kB / 401.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.069e-05/0.02391, allocations: 14.3 kB / 401.5 MB, free: 10.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.02396, allocations: 16.5 kB / 401.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02396, allocations: 0 / 401.5 MB, free: 10.24 MB / 378.7 MB Notification: Performance of Templates: time 0.007768/0.03172, allocations: 4.96 MB / 406.5 MB, free: 5.344 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3740800279192626]