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.001396/0.001396, allocations: 107.6 kB / 21.19 MB, free: 0.668 MB / 14.72 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.001624/0.001624, allocations: 207.5 kB / 24.48 MB, free: 3.977 MB / 14.72 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.495/1.495, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 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.2199/0.2199, allocations: 44.93 MB / 359.6 MB, free: 6.078 MB / 286.1 MB " [Timeout remaining time 180] 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 63.91 kB / 0.4942 GB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3548, allocations: 65.47 MB / 0.5582 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004301/0.3592, allocations: 2.717 MB / 0.5608 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3605, allocations: 0.658 MB / 0.5615 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.3607, allocations: 8 kB / 0.5615 GB, free: 3.969 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.3608, allocations: 55.44 kB / 0.5615 GB, free: 3.914 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.361, allocations: 91.19 kB / 0.5616 GB, free: 3.824 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000197/0.3612, allocations: 95.86 kB / 0.5617 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/0.3616, allocations: 406 kB / 0.5621 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.3619, allocations: 87.33 kB / 0.5622 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.362, allocations: 151.5 kB / 0.5623 GB, free: 3.098 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.3623, allocations: 147.3 kB / 0.5625 GB, free: 2.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.217e-05/0.3623, allocations: 36 kB / 0.5625 GB, free: 2.918 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.002e-05/0.3624, allocations: 35.94 kB / 0.5625 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.011e-05/0.3624, allocations: 71.75 kB / 0.5626 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.3626, allocations: 151.4 kB / 0.5627 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004195/0.363, allocations: 389.2 kB / 0.5631 GB, free: 2.285 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.363, allocations: 4 kB / 0.5631 GB, free: 2.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.363, allocations: 0 / 0.5631 GB, free: 2.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.363, allocations: 0 / 0.5631 GB, free: 2.281 MB / 398.1 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.001044/0.3641, allocations: 0.5695 MB / 0.5637 GB, free: 1.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3641, allocations: 15.98 kB / 0.5637 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.166e-05/0.3642, allocations: 32.75 kB / 0.5637 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.3646, allocations: 214.6 kB / 0.5639 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.3646, allocations: 25.03 kB / 0.564 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.3647, allocations: 24.38 kB / 0.564 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.3653, allocations: 441 kB / 0.5644 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.3653, allocations: 0 / 0.5644 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.3654, allocations: 8 kB / 0.5644 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3654, allocations: 8 kB / 0.5644 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005274/0.3659, allocations: 242.5 kB / 0.5646 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.3679, allocations: 1.084 MB / 0.5657 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007/0.3686, allocations: 296.5 kB / 0.566 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.3689, allocations: 140.2 kB / 0.5661 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.3689, allocations: 8.172 kB / 0.5661 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.369, allocations: 38.73 kB / 0.5662 GB, free: 15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.472e-06/0.369, allocations: 4 kB / 0.5662 GB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002908/0.3719, allocations: 0.8523 MB / 0.567 GB, free: 14.13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.3719, allocations: 59.41 kB / 0.5671 GB, free: 14.06 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.3721, allocations: 207.2 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.3722, allocations: 29.7 kB / 0.5673 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.3723, allocations: 184.5 kB / 0.5675 GB, free: 13.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.728e-05/0.3724, allocations: 91.16 kB / 0.5675 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.57e-05/0.3725, allocations: 57.66 kB / 0.5676 GB, free: 13.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3726, allocations: 334.8 kB / 0.5679 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.3729, allocations: 95.95 kB / 0.568 GB, free: 13.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.3732, allocations: 156.8 kB / 0.5682 GB, free: 12.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004929/0.3736, allocations: 244.6 kB / 0.5684 GB, free: 12.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.3737, allocations: 4 kB / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001228/0.3749, allocations: 494.7 kB / 0.5689 GB, free: 12.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3749, allocations: 4 kB / 0.5689 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.3749, allocations: 4 kB / 0.5689 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.376, allocations: 233.5 kB / 0.5691 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.3761, allocations: 35.92 kB / 0.5691 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00441/0.3805, allocations: 3.406 MB / 0.5725 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.3808, allocations: 35.8 kB / 0.5725 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.3808, allocations: 12 kB / 0.5725 GB, free: 8.188 MB / 414.1 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.0001773/0.381, allocations: 145.8 kB / 0.5726 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/0.381, allocations: 23.86 kB / 0.5727 GB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.715e-05/0.3811, allocations: 34.64 kB / 0.5727 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3811, allocations: 4 kB / 0.5727 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.3811, allocations: 4 kB / 0.5727 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3811, allocations: 0 / 0.5727 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.3827, allocations: 0.771 MB / 0.5735 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3827, allocations: 4 kB / 0.5735 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.621e-05/0.3828, allocations: 19.92 kB / 0.5735 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008878/0.3837, allocations: 237.5 kB / 0.5737 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.3837, allocations: 11.98 kB / 0.5737 GB, free: 6.883 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004208/0.3879, allocations: 3.397 MB / 0.577 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.388, allocations: 4.031 kB / 0.577 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.3891, allocations: 0.5252 MB / 0.5776 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.3892, allocations: 39.77 kB / 0.5776 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.3892, allocations: 11.94 kB / 0.5776 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.3895, allocations: 31.97 kB / 0.5776 GB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3896, allocations: 27.94 kB / 0.5777 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.3896, allocations: 11.94 kB / 0.5777 GB, free: 2.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001528/0.3897, allocations: 159.1 kB / 0.5778 GB, free: 2.449 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3897, allocations: 0 / 0.5778 GB, free: 2.449 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004641/0.3902, allocations: 111.8 kB / 0.5779 GB, free: 2.34 MB / 414.1 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.0001193/0.3903, allocations: 103.2 kB / 0.578 GB, free: 2.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.3914, allocations: 0.5245 MB / 0.5785 GB, free: 1.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.3914, allocations: 8.188 kB / 0.5786 GB, free: 1.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.392, allocations: 429 kB / 0.579 GB, free: 1.227 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.3924, allocations: 44.41 kB / 0.579 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.3934, allocations: 0.5451 MB / 0.5795 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001676/0.3936, allocations: 163.2 kB / 0.5797 GB, free: 436 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.491e-05/0.3936, allocations: 15.44 kB / 0.5797 GB, free: 420 kB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3936, allocations: 4 kB / 0.5797 GB, free: 416 kB / 414.1 MB Notification: Performance of Templates: time 0.008277/0.4019, allocations: 5.541 MB / 0.5851 GB, free: 10.87 MB / 430.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","/var/lib/jenkins1/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: 8.66537629114464]