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.001813/0.001813, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.002043/0.002043, allocations: 156.9 kB / 24.27 MB, free: 172 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.558/1.558, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.3991/0.3991, allocations: 34.25 MB / 295.2 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 179] 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 2.565e-06/2.565e-06, allocations: 3.938 kB / 377.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.779e-05/5.036e-05, allocations: 6.25 kB / 377.2 MB, free: 2.918 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.006942/0.006992, allocations: 2.727 MB / 379.9 MB, free: 176 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.009258, allocations: 0.6583 MB / 380.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002571/0.009515, allocations: 7.938 kB / 380.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.009817, allocations: 63.31 kB / 380.7 MB, free: 15.44 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.01015, allocations: 95.06 kB / 380.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.01052, allocations: 91.86 kB / 380.8 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008423/0.01136, allocations: 433.9 kB / 381.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/0.01168, allocations: 83.34 kB / 381.3 MB, free: 14.74 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/0.01214, allocations: 231.6 kB / 381.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000308/0.01244, allocations: 115.7 kB / 381.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 9.095e-05/0.01254, allocations: 40 kB / 381.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.982e-05/0.01263, allocations: 32 kB / 381.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.01274, allocations: 75.73 kB / 381.8 MB, free: 14.26 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002407/0.01298, allocations: 123.7 kB / 382 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00078/0.01376, allocations: 406.7 kB / 382.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.01377, allocations: 0 / 382.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.01377, allocations: 0 / 382.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.01378, allocations: 0 / 382.3 MB, free: 13.74 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.001755/0.01553, allocations: 0.5599 MB / 382.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.347e-05/0.0156, allocations: 8.031 kB / 382.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.01581, allocations: 64.64 kB / 383 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006878/0.0165, allocations: 219.3 kB / 383.2 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.853e-05/0.01654, allocations: 17.03 kB / 383.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.798e-05/0.01662, allocations: 28.38 kB / 383.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.01782, allocations: 437.2 kB / 383.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.01784, allocations: 4.188 kB / 383.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.173e-05/0.01789, allocations: 8.375 kB / 383.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.01791, allocations: 11.94 kB / 383.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009249/0.01884, allocations: 246.4 kB / 383.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003532/0.02237, allocations: 1.088 MB / 385 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.02362, allocations: 291.1 kB / 385.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.02415, allocations: 137.2 kB / 385.4 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.408e-05/0.0242, allocations: 8.219 kB / 385.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.627e-05/0.02426, allocations: 42.8 kB / 385.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.605e-06/0.02426, allocations: 0 / 385.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.004859/0.02912, allocations: 0.864 MB / 386.3 MB, free: 9.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.02919, allocations: 51.41 kB / 386.4 MB, free: 9.492 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004336/0.02962, allocations: 228.1 kB / 386.6 MB, free: 9.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.02967, allocations: 37.64 kB / 386.7 MB, free: 9.219 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.02988, allocations: 172.5 kB / 386.8 MB, free: 9.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.03003, allocations: 99.16 kB / 386.9 MB, free: 8.949 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.03021, allocations: 49.7 kB / 387 MB, free: 8.895 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000272/0.03048, allocations: 330.8 kB / 387.3 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.03088, allocations: 107.9 kB / 387.4 MB, free: 8.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004784/0.03136, allocations: 148.1 kB / 387.5 MB, free: 8.297 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008507/0.03221, allocations: 252.1 kB / 387.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.03222, allocations: 0 / 387.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001969/0.03419, allocations: 490.8 kB / 388.3 MB, free: 7.543 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.03421, allocations: 4 kB / 388.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.03423, allocations: 4 kB / 388.3 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002128/0.03635, allocations: 297.4 kB / 388.6 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.0366, allocations: 27.98 kB / 388.6 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00746/0.04406, allocations: 3.42 MB / 392 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003578/0.04442, allocations: 35.89 kB / 392.1 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/0.04445, allocations: 8.469 kB / 392.1 MB, free: 3.539 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.0003208/0.04477, allocations: 145.8 kB / 392.2 MB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.04491, allocations: 35.8 kB / 392.2 MB, free: 3.352 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.448e-05/0.045, allocations: 30.66 kB / 392.3 MB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.04501, allocations: 4 kB / 392.3 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.04502, allocations: 0 / 392.3 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.04503, allocations: 7.984 kB / 392.3 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.0479, allocations: 0.7731 MB / 393.1 MB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/0.04791, allocations: 7.938 kB / 393.1 MB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.04804, allocations: 15.98 kB / 393.1 MB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001963/0.05001, allocations: 297.3 kB / 393.4 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.05003, allocations: 0 / 393.4 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007084/0.05711, allocations: 3.417 MB / 396.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.05712, allocations: 0 / 396.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.05915, allocations: 0.534 MB / 397.3 MB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002206/0.05937, allocations: 43.77 kB / 397.4 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.05942, allocations: 8 kB / 397.4 MB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003854/0.0598, allocations: 27.97 kB / 397.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.05998, allocations: 35.81 kB / 397.4 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.06001, allocations: 12 kB / 397.4 MB, free: 13.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002932/0.0603, allocations: 152.7 kB / 397.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0603, allocations: 0 / 397.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008405/0.06114, allocations: 107.9 kB / 397.7 MB, free: 13.61 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.0002354/0.06138, allocations: 111.2 kB / 397.8 MB, free: 13.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.06327, allocations: 0.5312 MB / 398.3 MB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.06328, allocations: 0 / 398.3 MB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.06433, allocations: 428.7 kB / 398.8 MB, free: 12.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000638/0.06497, allocations: 44.61 kB / 398.8 MB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.06662, allocations: 0.5088 MB / 399.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.06688, allocations: 155.2 kB / 399.5 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000142/0.06702, allocations: 22.23 kB / 399.5 MB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.217e-05/0.0671, allocations: 20.5 kB / 399.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.0671, allocations: 0 / 399.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of Templates: time 0.01609/0.08319, allocations: 4.668 MB / 404.2 MB, free: 7.098 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.406611726037227]