Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0019/0.0019, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002102/0.002102, allocations: 169.3 kB / 24.27 MB, free: 156 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.599/1.599, allocations: 177.1 MB / 204.6 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4095/0.4095, allocations: 32.8 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.003e-06/2.003e-06, allocations: 0 / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.221e-05/3.421e-05, allocations: 6.25 kB / 375.3 MB, free: 5.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004937/0.004971, allocations: 2.9 MB / 378.2 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.006727, allocations: 0.6739 MB / 378.8 MB, free: 1.41 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.006906, allocations: 7.938 kB / 378.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.007114, allocations: 55.44 kB / 378.9 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.007332, allocations: 95.06 kB / 379 MB, free: 1.254 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.007547, allocations: 99.84 kB / 379.1 MB, free: 1.156 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005108/0.008058, allocations: 421.9 kB / 379.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.008299, allocations: 79.36 kB / 379.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003007/0.008599, allocations: 231.6 kB / 379.8 MB, free: 444 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.00882, allocations: 115.7 kB / 379.9 MB, free: 328 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.643e-05/0.008887, allocations: 39.94 kB / 379.9 MB, free: 288 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.777e-05/0.008955, allocations: 32 kB / 380 MB, free: 256 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.434e-05/0.009039, allocations: 75.73 kB / 380.1 MB, free: 180 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.00921, allocations: 127.7 kB / 380.2 MB, free: 52 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005407/0.009751, allocations: 410.7 kB / 380.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.009755, allocations: 4 kB / 380.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.641e-06/0.009761, allocations: 4 kB / 380.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.009769, allocations: 0 / 380.6 MB, free: 15.64 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.001213/0.01098, allocations: 0.6673 MB / 381.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.01102, allocations: 11.98 kB / 381.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.01115, allocations: 60.7 kB / 381.3 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.01154, allocations: 221.2 kB / 381.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.552e-05/0.01157, allocations: 28.97 kB / 381.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.01162, allocations: 24.38 kB / 381.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000723/0.01235, allocations: 433.8 kB / 382 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.01236, allocations: 192 / 382 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.01239, allocations: 16.38 kB / 382 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.01241, allocations: 11.94 kB / 382 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005045/0.01292, allocations: 218.5 kB / 382.3 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.01522, allocations: 1.296 MB / 383.6 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006705/0.01589, allocations: 275.6 kB / 383.8 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.0162, allocations: 136.1 kB / 384 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.195e-05/0.01623, allocations: 12.23 kB / 384 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.01626, allocations: 33.62 kB / 384 MB, free: 12.03 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.332e-06/0.01627, allocations: 4 kB / 384 MB, free: 12.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002636/0.0189, allocations: 0.7448 MB / 384.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.01895, allocations: 59.34 kB / 384.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/0.01928, allocations: 301.7 kB / 385.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.01932, allocations: 29.7 kB / 385.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.01949, allocations: 223.3 kB / 385.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.01959, allocations: 99.16 kB / 385.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003845/0.01998, allocations: 67.36 kB / 385.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002776/0.02026, allocations: 0.5079 MB / 386 MB, free: 9.938 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.02048, allocations: 87.97 kB / 386.1 MB, free: 9.852 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.02076, allocations: 163.1 kB / 386.3 MB, free: 9.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004841/0.02124, allocations: 246.3 kB / 386.5 MB, free: 9.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.02124, allocations: 0 / 386.5 MB, free: 9.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00111/0.02235, allocations: 464.3 kB / 387 MB, free: 8.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.02237, allocations: 8 kB / 387 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.02238, allocations: 0 / 387 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.02343, allocations: 227.3 kB / 387.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.02359, allocations: 35.92 kB / 387.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005323/0.02891, allocations: 4.377 MB / 391.6 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002315/0.02914, allocations: 35.83 kB / 391.6 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.02917, allocations: 12 kB / 391.6 MB, free: 4 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.0002247/0.02939, allocations: 192.5 kB / 391.8 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.38e-05/0.02947, allocations: 35.8 kB / 391.9 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.145e-05/0.02955, allocations: 34.64 kB / 391.9 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.02955, allocations: 4 kB / 391.9 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.02956, allocations: 4 kB / 391.9 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.02957, allocations: 0 / 391.9 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.03153, allocations: 0.8248 MB / 392.7 MB, free: 2.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.03154, allocations: 3.938 kB / 392.7 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.554e-05/0.03164, allocations: 23.97 kB / 392.8 MB, free: 2.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009612/0.0326, allocations: 231.6 kB / 393 MB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.03262, allocations: 4 kB / 393 MB, free: 2.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.03763, allocations: 4.364 MB / 397.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.03763, allocations: 0 / 397.4 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.03876, allocations: 0.5556 MB / 397.9 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.03888, allocations: 43.77 kB / 398 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.03892, allocations: 8 kB / 398 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.03915, allocations: 27.98 kB / 398 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.03926, allocations: 31.88 kB / 398 MB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.03928, allocations: 11.94 kB / 398 MB, free: 13.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002117/0.03949, allocations: 211.1 kB / 398.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03949, allocations: 0 / 398.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004925/0.03998, allocations: 107.9 kB / 398.3 MB, free: 12.96 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.0001977/0.04018, allocations: 99.25 kB / 398.4 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.0414, allocations: 0.6506 MB / 399.1 MB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.04141, allocations: 4 kB / 399.1 MB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007822/0.04219, allocations: 0.5421 MB / 399.6 MB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.04257, allocations: 44.47 kB / 399.7 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.04389, allocations: 0.5143 MB / 400.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/0.04407, allocations: 159.2 kB / 400.4 MB, free: 10.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.056e-05/0.04416, allocations: 14.3 kB / 400.4 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.474e-05/0.04422, allocations: 20.5 kB / 400.4 MB, free: 10.78 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.04422, allocations: 0 / 400.4 MB, free: 10.78 MB / 378.7 MB Notification: Performance of Templates: time 0.01096/0.05518, allocations: 4.774 MB / 405.2 MB, free: 6.066 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.547850152011961]