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.001547/0.001547, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.00147/0.00147, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 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.568/1.568, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.1 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.2622/0.2622, allocations: 46.95 MB / 360.8 MB, free: 3.934 MB / 286.1 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 0.00307/0.00307, allocations: 79.88 kB / 0.4966 GB, free: 7.055 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4256, allocations: 66.08 MB / 0.5612 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004477/0.4301, allocations: 2.716 MB / 0.5638 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.4313, allocations: 0.6649 MB / 0.5645 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.4315, allocations: 4 kB / 0.5645 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.4317, allocations: 59.44 kB / 0.5645 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002324/0.4319, allocations: 83.19 kB / 0.5646 GB, free: 464 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.4321, allocations: 99.8 kB / 0.5647 GB, free: 364 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004729/0.4326, allocations: 418.2 kB / 0.5651 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.4328, allocations: 83.34 kB / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.433, allocations: 163.3 kB / 0.5653 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.4332, allocations: 147.3 kB / 0.5655 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.117e-05/0.4332, allocations: 36 kB / 0.5655 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.251e-05/0.4333, allocations: 32 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.13e-05/0.4334, allocations: 71.77 kB / 0.5656 GB, free: 15.42 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.4335, allocations: 143.4 kB / 0.5657 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004811/0.434, allocations: 398.1 kB / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.434, allocations: 0 / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.434, allocations: 4 kB / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.434, allocations: 0 / 0.5661 GB, free: 14.89 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.001118/0.4351, allocations: 0.5677 MB / 0.5667 GB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.4352, allocations: 8.031 kB / 0.5667 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.4353, allocations: 36.75 kB / 0.5667 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004319/0.4357, allocations: 211.5 kB / 0.5669 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.4358, allocations: 21.03 kB / 0.567 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.562e-05/0.4358, allocations: 28.38 kB / 0.567 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007249/0.4365, allocations: 441 kB / 0.5674 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.4365, allocations: 0 / 0.5674 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.4366, allocations: 12 kB / 0.5674 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.4366, allocations: 4 kB / 0.5674 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.4371, allocations: 238.5 kB / 0.5676 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.4394, allocations: 1.091 MB / 0.5687 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007274/0.4401, allocations: 290.8 kB / 0.569 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.4404, allocations: 141.3 kB / 0.5691 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.4405, allocations: 8.172 kB / 0.5691 GB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.4405, allocations: 38.73 kB / 0.5692 GB, free: 11.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.382e-06/0.4405, allocations: 0 / 0.5692 GB, free: 11.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.00288/0.4434, allocations: 0.8601 MB / 0.57 GB, free: 10.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.4434, allocations: 55.39 kB / 0.5701 GB, free: 10.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.4437, allocations: 212.2 kB / 0.5703 GB, free: 10.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.4437, allocations: 33.7 kB / 0.5703 GB, free: 10.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.4439, allocations: 180.5 kB / 0.5705 GB, free: 10.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.802e-05/0.444, allocations: 91.22 kB / 0.5706 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.68e-05/0.4441, allocations: 57.66 kB / 0.5706 GB, free: 10.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.4442, allocations: 326.8 kB / 0.5709 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.4444, allocations: 99.94 kB / 0.571 GB, free: 9.652 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.4447, allocations: 148 kB / 0.5712 GB, free: 9.492 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.4452, allocations: 252.1 kB / 0.5714 GB, free: 9.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4452, allocations: 0 / 0.5714 GB, free: 9.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001142/0.4463, allocations: 490.7 kB / 0.5719 GB, free: 8.738 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.4464, allocations: 8 kB / 0.5719 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4464, allocations: 4.062 kB / 0.5719 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009713/0.4473, allocations: 233.4 kB / 0.5721 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.4475, allocations: 39.92 kB / 0.5721 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.4519, allocations: 3.409 MB / 0.5755 GB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002335/0.4522, allocations: 35.77 kB / 0.5755 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.4522, allocations: 8 kB / 0.5755 GB, free: 4.801 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.0002797/0.4525, allocations: 147 kB / 0.5756 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.4525, allocations: 23.86 kB / 0.5757 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.578e-05/0.4526, allocations: 34.72 kB / 0.5757 GB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4526, allocations: 3.984 kB / 0.5757 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.4526, allocations: 4 kB / 0.5757 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4526, allocations: 0 / 0.5757 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.4543, allocations: 0.7701 MB / 0.5765 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.4543, allocations: 3.984 kB / 0.5765 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.996e-05/0.4544, allocations: 19.94 kB / 0.5765 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008493/0.4553, allocations: 241.4 kB / 0.5767 GB, free: 3.504 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.4553, allocations: 4 kB / 0.5767 GB, free: 3.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004363/0.4596, allocations: 3.405 MB / 0.58 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.4597, allocations: 3.984 kB / 0.58 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.4608, allocations: 0.5292 MB / 0.5806 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.4609, allocations: 39.77 kB / 0.5806 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.461, allocations: 11.94 kB / 0.5806 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.4612, allocations: 23.98 kB / 0.5806 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.669e-05/0.4613, allocations: 27.94 kB / 0.5807 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.4613, allocations: 16 kB / 0.5807 GB, free: 15.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001799/0.4615, allocations: 156.7 kB / 0.5808 GB, free: 15.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4615, allocations: 3.938 kB / 0.5808 GB, free: 15.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000511/0.462, allocations: 115.8 kB / 0.5809 GB, free: 14.95 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.000173/0.4622, allocations: 99.25 kB / 0.581 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.4633, allocations: 0.5246 MB / 0.5815 GB, free: 14.29 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4633, allocations: 0 / 0.5815 GB, free: 14.29 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006101/0.4639, allocations: 433.1 kB / 0.582 GB, free: 13.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003588/0.4642, allocations: 35 kB / 0.582 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.4653, allocations: 0.516 MB / 0.5825 GB, free: 13.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.4654, allocations: 159.2 kB / 0.5826 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.495e-05/0.4655, allocations: 18.28 kB / 0.5827 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.372e-05/0.4656, allocations: 19.44 kB / 0.5827 GB, free: 13.05 MB / 430.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4656, allocations: 4 kB / 0.5827 GB, free: 13.05 MB / 430.1 MB Notification: Performance of Templates: time 0.0105/0.4761, allocations: 4.94 MB / 0.5875 GB, free: 8.172 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/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.654672849923372]