Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001411/0.001411, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001438/0.001438, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.516/1.516, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2342/0.2342, allocations: 46.93 MB / 360.8 MB, free: 4.266 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 71.89 kB / 0.4966 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4152, allocations: 66.02 MB / 0.5611 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005797/0.421, allocations: 2.953 MB / 0.564 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.4229, allocations: 0.7009 MB / 0.5647 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.4231, allocations: 7.938 kB / 0.5647 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.4233, allocations: 55.44 kB / 0.5647 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.4235, allocations: 87.19 kB / 0.5648 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.4237, allocations: 91.86 kB / 0.5649 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000513/0.4242, allocations: 418 kB / 0.5653 GB, free: 92 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.4245, allocations: 91.38 kB / 0.5654 GB, free: 16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.4247, allocations: 151.5 kB / 0.5655 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002464/0.4249, allocations: 163.4 kB / 0.5657 GB, free: 15.69 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.425, allocations: 36 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.376e-05/0.4251, allocations: 35.94 kB / 0.5658 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.361e-05/0.4251, allocations: 75.75 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.4253, allocations: 167.2 kB / 0.566 GB, free: 15.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.4258, allocations: 397.2 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4258, allocations: 0 / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4258, allocations: 4 kB / 0.5664 GB, free: 14.99 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.4258, allocations: 0 / 0.5664 GB, free: 14.99 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.001143/0.427, allocations: 0.5638 MB / 0.5669 GB, free: 14.4 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.427, allocations: 8.031 kB / 0.5669 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.585e-05/0.4271, allocations: 36.75 kB / 0.567 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.4276, allocations: 214.6 kB / 0.5672 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.4276, allocations: 17.03 kB / 0.5672 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.4277, allocations: 28.38 kB / 0.5672 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006645/0.4283, allocations: 334.2 kB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4283, allocations: 0 / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.4284, allocations: 12 kB / 0.5676 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.4284, allocations: 4 kB / 0.5676 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005403/0.4289, allocations: 246.4 kB / 0.5678 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002427/0.4314, allocations: 1.212 MB / 0.569 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000882/0.4322, allocations: 290.8 kB / 0.5693 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004529/0.4327, allocations: 149.1 kB / 0.5694 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.4327, allocations: 4.234 kB / 0.5694 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.4328, allocations: 38.78 kB / 0.5694 GB, free: 11.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=27): time 1.773e-06/0.4328, allocations: 0 / 0.5694 GB, free: 11.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=27): time 0.0031/0.4359, allocations: 0.86 MB / 0.5703 GB, free: 10.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.4359, allocations: 55.41 kB / 0.5703 GB, free: 10.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.4363, allocations: 241.1 kB / 0.5706 GB, free: 10.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.4364, allocations: 29.7 kB / 0.5706 GB, free: 10.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/0.4365, allocations: 176.6 kB / 0.5708 GB, free: 10.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.411e-05/0.4366, allocations: 95.16 kB / 0.5708 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.4367, allocations: 49.7 kB / 0.5709 GB, free: 10.15 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.4369, allocations: 338.8 kB / 0.5712 GB, free: 9.812 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/0.4372, allocations: 95.95 kB / 0.5713 GB, free: 9.719 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.4374, allocations: 156.8 kB / 0.5715 GB, free: 9.551 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004819/0.4379, allocations: 244.7 kB / 0.5717 GB, free: 9.297 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4379, allocations: 0 / 0.5717 GB, free: 9.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001257/0.4392, allocations: 494.6 kB / 0.5722 GB, free: 8.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.4392, allocations: 7.984 kB / 0.5722 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.4392, allocations: 4.062 kB / 0.5722 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.4402, allocations: 233.5 kB / 0.5724 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.4404, allocations: 31.94 kB / 0.5724 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004928/0.4453, allocations: 3.485 MB / 0.5758 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.4455, allocations: 31.83 kB / 0.5759 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/0.4456, allocations: 8 kB / 0.5759 GB, free: 4.773 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.0002058/0.4458, allocations: 147.7 kB / 0.576 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.333e-05/0.4458, allocations: 23.86 kB / 0.576 GB, free: 4.598 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.14e-05/0.4459, allocations: 34.95 kB / 0.5761 GB, free: 4.559 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.4459, allocations: 7.938 kB / 0.5761 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/0.4459, allocations: 7.938 kB / 0.5761 GB, free: 4.543 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.4459, allocations: 0 / 0.5761 GB, free: 4.543 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/0.4477, allocations: 0.8561 MB / 0.5769 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.4477, allocations: 3.984 kB / 0.5769 GB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.258e-05/0.4478, allocations: 16 kB / 0.5769 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008887/0.4487, allocations: 237.4 kB / 0.5772 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.4487, allocations: 7.875 kB / 0.5772 GB, free: 3.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005109/0.4538, allocations: 3.486 MB / 0.5806 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4538, allocations: 0 / 0.5806 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.4551, allocations: 0.5251 MB / 0.5811 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.4552, allocations: 51.72 kB / 0.5811 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.4552, allocations: 4 kB / 0.5811 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.4555, allocations: 31.97 kB / 0.5812 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.905e-05/0.4556, allocations: 27.95 kB / 0.5812 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.4556, allocations: 8 kB / 0.5812 GB, free: 14.98 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003072/0.4559, allocations: 172.5 kB / 0.5814 GB, free: 14.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4559, allocations: 0 / 0.5814 GB, free: 14.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000487/0.4564, allocations: 115.8 kB / 0.5815 GB, free: 14.7 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.0001855/0.4566, allocations: 107.2 kB / 0.5816 GB, free: 14.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.4577, allocations: 0.5326 MB / 0.5821 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4577, allocations: 0 / 0.5821 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007242/0.4584, allocations: 429 kB / 0.5825 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004106/0.4588, allocations: 44.92 kB / 0.5826 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.4599, allocations: 0.5196 MB / 0.5831 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.4603, allocations: 0.7678 MB / 0.5838 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.884e-05/0.4604, allocations: 26.22 kB / 0.5838 GB, free: 12.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.119e-05/0.4605, allocations: 19.44 kB / 0.5839 GB, free: 12.16 MB / 430.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4605, allocations: 0 / 0.5839 GB, free: 12.16 MB / 430.1 MB Notification: Performance of Templates: time 0.01114/0.4716, allocations: 4.824 MB / 0.5886 GB, free: 7.375 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.787523346953094]