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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00169/0.00169, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002215/0.002215, allocations: 215 kB / 23.54 MB, free: 5.387 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 230.2 MB / 256.8 MB, free: 8.645 MB / 206.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2338/0.2338, allocations: 46.89 MB / 359.9 MB, free: 4.977 MB / 286.1 MB [Timeout remaining time 90] 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 0.002467/0.002467, allocations: 83.8 kB / 0.495 GB, free: 8.684 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3812, allocations: 65.98 MB / 0.5594 GB, free: 5.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004543/0.3858, allocations: 2.936 MB / 0.5623 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.3872, allocations: 0.697 MB / 0.563 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.3874, allocations: 4 kB / 0.563 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.3875, allocations: 51.44 kB / 0.563 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.3877, allocations: 95.19 kB / 0.5631 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001948/0.3879, allocations: 91.86 kB / 0.5632 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004647/0.3884, allocations: 418 kB / 0.5636 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.3886, allocations: 90.92 kB / 0.5637 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.3888, allocations: 151.5 kB / 0.5638 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.389, allocations: 171.2 kB / 0.564 GB, free: 488 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.732e-05/0.3891, allocations: 32 kB / 0.564 GB, free: 456 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.3891, allocations: 36 kB / 0.564 GB, free: 420 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.951e-05/0.3892, allocations: 75.75 kB / 0.5641 GB, free: 344 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.3894, allocations: 171.2 kB / 0.5643 GB, free: 172 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004634/0.3899, allocations: 393.2 kB / 0.5647 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3899, allocations: 0 / 0.5647 GB, free: 15.79 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3899, allocations: 0 / 0.5647 GB, free: 15.79 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.3899, allocations: 0 / 0.5647 GB, free: 15.79 MB / 414.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.001084/0.391, allocations: 0.639 MB / 0.5653 GB, free: 15.1 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.391, allocations: 13.11 kB / 0.5653 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.79e-05/0.3911, allocations: 32.75 kB / 0.5653 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.3915, allocations: 277.2 kB / 0.5656 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.3915, allocations: 24.94 kB / 0.5656 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.3916, allocations: 24.38 kB / 0.5656 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.3922, allocations: 332.8 kB / 0.566 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3922, allocations: 4 kB / 0.566 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.3922, allocations: 15.94 kB / 0.566 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3922, allocations: 8 kB / 0.566 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005129/0.3928, allocations: 242.1 kB / 0.5662 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.3948, allocations: 1.25 MB / 0.5674 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007687/0.3956, allocations: 441.1 kB / 0.5678 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.3959, allocations: 137.3 kB / 0.568 GB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.3959, allocations: 4.234 kB / 0.568 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3959, allocations: 34.8 kB / 0.568 GB, free: 12.1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.933e-06/0.3959, allocations: 0 / 0.568 GB, free: 12.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.002861/0.3988, allocations: 1.022 MB / 0.569 GB, free: 11.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.3988, allocations: 51.41 kB / 0.5691 GB, free: 10.97 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.3991, allocations: 237 kB / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.3991, allocations: 37.69 kB / 0.5693 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.3993, allocations: 164.6 kB / 0.5695 GB, free: 10.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.062e-05/0.3993, allocations: 91.23 kB / 0.5696 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.807e-05/0.3994, allocations: 57.64 kB / 0.5696 GB, free: 10.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3996, allocations: 334.8 kB / 0.5699 GB, free: 10.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/0.3998, allocations: 103.9 kB / 0.57 GB, free: 9.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002659/0.4001, allocations: 148 kB / 0.5702 GB, free: 9.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004614/0.4005, allocations: 244.2 kB / 0.5704 GB, free: 9.516 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4005, allocations: 0 / 0.5704 GB, free: 9.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001101/0.4016, allocations: 0.4952 MB / 0.5709 GB, free: 9.008 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.4017, allocations: 4 kB / 0.5709 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.4017, allocations: 4 kB / 0.5709 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009465/0.4026, allocations: 229.5 kB / 0.5711 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.4028, allocations: 35.92 kB / 0.5712 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004334/0.4071, allocations: 3.688 MB / 0.5748 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.4073, allocations: 39.86 kB / 0.5748 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.4074, allocations: 8 kB / 0.5748 GB, free: 4.719 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.0001924/0.4076, allocations: 145.8 kB / 0.5749 GB, free: 4.566 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.324e-05/0.4076, allocations: 27.86 kB / 0.575 GB, free: 4.539 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.102e-05/0.4077, allocations: 34.86 kB / 0.575 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.4077, allocations: 4 kB / 0.575 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.4077, allocations: 3.938 kB / 0.575 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.4077, allocations: 4 kB / 0.575 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001668/0.4094, allocations: 0.8797 MB / 0.5759 GB, free: 3.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4094, allocations: 0 / 0.5759 GB, free: 3.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.312e-05/0.4095, allocations: 23.92 kB / 0.5759 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00085/0.4103, allocations: 241.4 kB / 0.5761 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.4103, allocations: 4 kB / 0.5761 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004431/0.4148, allocations: 3.685 MB / 0.5797 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4148, allocations: 4.031 kB / 0.5797 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.4159, allocations: 0.5252 MB / 0.5803 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.416, allocations: 120.8 kB / 0.5804 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.4161, allocations: 12 kB / 0.5804 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.4163, allocations: 31.97 kB / 0.5804 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.867e-05/0.4164, allocations: 23.97 kB / 0.5804 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.4164, allocations: 8 kB / 0.5804 GB, free: 14.55 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000182/0.4166, allocations: 172.5 kB / 0.5806 GB, free: 14.39 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4166, allocations: 3.938 kB / 0.5806 GB, free: 14.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004831/0.4171, allocations: 115.8 kB / 0.5807 GB, free: 14.27 MB / 430.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.0001492/0.4172, allocations: 107.2 kB / 0.5808 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.4183, allocations: 0.5442 MB / 0.5814 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4183, allocations: 0 / 0.5814 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.419, allocations: 425.1 kB / 0.5818 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.4193, allocations: 44.8 kB / 0.5818 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.4204, allocations: 0.5556 MB / 0.5823 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.4208, allocations: 0.7678 MB / 0.5831 GB, free: 11.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.571e-05/0.4209, allocations: 23.38 kB / 0.5831 GB, free: 11.69 MB / 430.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4209, allocations: 0 / 0.5831 GB, free: 11.69 MB / 430.1 MB Notification: Performance of Templates: time 0.008639/0.4295, allocations: 5.591 MB / 0.5886 GB, free: 6.109 MB / 430.1 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/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_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