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.001757/0.001757, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002237/0.002237, allocations: 161.7 kB / 24.27 MB, free: 172 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.577/1.577, allocations: 177.1 MB / 204.6 MB, free: 5.609 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.4024/0.4024, 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 1.973e-06/1.973e-06, allocations: 0 / 375.2 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.129e-05/3.326e-05, allocations: 2.312 kB / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.006922/0.006955, allocations: 2.724 MB / 378 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002018/0.008973, allocations: 0.6621 MB / 378.6 MB, free: 1.613 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.009196, allocations: 7.938 kB / 378.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.009459, allocations: 55.42 kB / 378.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003194/0.009778, allocations: 99.06 kB / 378.8 MB, free: 1.453 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.01011, allocations: 91.86 kB / 378.9 MB, free: 1.363 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007768/0.01088, allocations: 425.9 kB / 379.3 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003283/0.01121, allocations: 83.34 kB / 379.4 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004382/0.01165, allocations: 223.5 kB / 379.6 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.01197, allocations: 123.7 kB / 379.7 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.01208, allocations: 36 kB / 379.8 MB, free: 496 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.823e-05/0.01217, allocations: 32 kB / 379.8 MB, free: 464 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.01229, allocations: 79.72 kB / 379.9 MB, free: 384 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002288/0.01252, allocations: 119.8 kB / 380 MB, free: 264 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007728/0.01329, allocations: 406.7 kB / 380.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.0133, allocations: 4 kB / 380.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.0133, allocations: 0 / 380.4 MB, free: 15.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.01331, allocations: 0 / 380.4 MB, free: 15.86 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.001648/0.01496, allocations: 0.556 MB / 380.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.01501, allocations: 15.92 kB / 381 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.01519, allocations: 60.7 kB / 381 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/0.01583, allocations: 214.4 kB / 381.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.595e-05/0.01588, allocations: 25.02 kB / 381.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.696e-05/0.01596, allocations: 32.38 kB / 381.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.0171, allocations: 429.2 kB / 381.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.01711, allocations: 192 / 381.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.01717, allocations: 12.38 kB / 381.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.01719, allocations: 15.92 kB / 381.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008819/0.01808, allocations: 238.5 kB / 382 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.02127, allocations: 1.096 MB / 383.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.02238, allocations: 299 kB / 383.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004804/0.02286, allocations: 137.2 kB / 383.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.02289, allocations: 4.234 kB / 383.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.974e-05/0.02296, allocations: 38.8 kB / 383.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 3.667e-06/0.02296, allocations: 0 / 383.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.004459/0.02742, allocations: 0.864 MB / 384.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.02748, allocations: 51.41 kB / 384.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.02789, allocations: 227.1 kB / 384.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.02794, allocations: 29.7 kB / 384.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.02813, allocations: 172.5 kB / 384.9 MB, free: 11.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.02826, allocations: 103.2 kB / 385 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.02842, allocations: 45.7 kB / 385 MB, free: 11.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002735/0.02869, allocations: 342.8 kB / 385.3 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.02905, allocations: 95.95 kB / 385.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004265/0.02948, allocations: 153 kB / 385.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007748/0.03025, allocations: 240.7 kB / 385.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.495e-06/0.03026, allocations: 4 kB / 385.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001315/0.03157, allocations: 494.8 kB / 386.3 MB, free: 9.664 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.03161, allocations: 7.938 kB / 386.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.03162, allocations: 3.984 kB / 386.3 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.03305, allocations: 289.5 kB / 386.6 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.03321, allocations: 31.97 kB / 386.6 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004952/0.03817, allocations: 3.425 MB / 390.1 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.03839, allocations: 27.83 kB / 390.1 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.03841, allocations: 12 kB / 390.1 MB, free: 5.66 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.0002077/0.03862, allocations: 141.8 kB / 390.2 MB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.673e-05/0.03869, allocations: 39.8 kB / 390.3 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.492e-05/0.03879, allocations: 34.64 kB / 390.3 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.0388, allocations: 8 kB / 390.3 MB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.03881, allocations: 3.938 kB / 390.3 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.03881, allocations: 0 / 390.3 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.04075, allocations: 0.773 MB / 391.1 MB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.361e-06/0.04076, allocations: 7.938 kB / 391.1 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.299e-05/0.04084, allocations: 16 kB / 391.1 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.04214, allocations: 293.8 kB / 391.4 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.04216, allocations: 4 kB / 391.4 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004995/0.04716, allocations: 3.409 MB / 394.8 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.04716, allocations: 0 / 394.8 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.04839, allocations: 0.5418 MB / 395.4 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.0485, allocations: 39.77 kB / 395.4 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.04853, allocations: 8 kB / 395.4 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.04876, allocations: 27.98 kB / 395.4 MB, free: 44 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.973e-05/0.04886, allocations: 31.88 kB / 395.5 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.0489, allocations: 12.08 kB / 395.5 MB, free: 16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001753/0.04908, allocations: 151.2 kB / 395.6 MB, free: 15.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04908, allocations: 0 / 395.6 MB, free: 15.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004755/0.04955, allocations: 107.9 kB / 395.7 MB, free: 15.74 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.0001521/0.04971, allocations: 111.2 kB / 395.8 MB, free: 15.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.05083, allocations: 0.535 MB / 396.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.05084, allocations: 0 / 396.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007004/0.05154, allocations: 425 kB / 396.8 MB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.05191, allocations: 44.39 kB / 396.8 MB, free: 14.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.05322, allocations: 0.5088 MB / 397.3 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.05342, allocations: 163.1 kB / 397.5 MB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.861e-05/0.05351, allocations: 18.3 kB / 397.5 MB, free: 13.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/0.05357, allocations: 24.5 kB / 397.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.05357, allocations: 0 / 397.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of Templates: time 0.01033/0.0639, allocations: 4.67 MB / 402.2 MB, free: 9.215 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] 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.141602340969257]