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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00135/0.001351, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2669/0.2669, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 79.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4464/0.4478, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004777/0.4526, allocations: 2.92 MB / 0.5338 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.454, allocations: 0.6892 MB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.4541, allocations: 8.469 kB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.4543, allocations: 50.06 kB / 0.5346 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.4545, allocations: 88.44 kB / 0.5347 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.4547, allocations: 95.56 kB / 0.5347 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004292/0.4551, allocations: 406.9 kB / 0.5351 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.4554, allocations: 121.2 kB / 0.5352 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.4556, allocations: 149.8 kB / 0.5354 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.4558, allocations: 164.7 kB / 0.5355 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.744e-05/0.4559, allocations: 34.38 kB / 0.5356 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.587e-05/0.456, allocations: 38.31 kB / 0.5356 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.322e-05/0.456, allocations: 71.66 kB / 0.5357 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002334/0.4563, allocations: 166.1 kB / 0.5358 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004593/0.4568, allocations: 396.3 kB / 0.5362 GB, free: 9.547 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.4568, allocations: 5.109 kB / 0.5362 GB, free: 9.543 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.4568, allocations: 0 / 0.5362 GB, free: 9.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.4568, allocations: 3.938 kB / 0.5362 GB, free: 9.539 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.001064/0.4579, allocations: 0.6353 MB / 0.5368 GB, free: 8.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.4579, allocations: 11.05 kB / 0.5369 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.219e-05/0.458, allocations: 37.94 kB / 0.5369 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003397/0.4583, allocations: 281.9 kB / 0.5372 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.4584, allocations: 19.38 kB / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.4584, allocations: 30.73 kB / 0.5372 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005895/0.459, allocations: 324.9 kB / 0.5375 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.459, allocations: 0 / 0.5375 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/0.4591, allocations: 19.47 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.4591, allocations: 6.969 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000534/0.4597, allocations: 241.7 kB / 0.5378 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.4618, allocations: 1.243 MB / 0.539 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.4628, allocations: 481.2 kB / 0.5395 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.4631, allocations: 162.7 kB / 0.5396 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.4632, allocations: 2.797 kB / 0.5396 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.499e-05/0.4632, allocations: 41.69 kB / 0.5396 GB, free: 6.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.663e-06/0.4632, allocations: 4 kB / 0.5397 GB, free: 6.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002969/0.4662, allocations: 1.006 MB / 0.5406 GB, free: 6.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.4663, allocations: 58.77 kB / 0.5407 GB, free: 6.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.4665, allocations: 240.9 kB / 0.5409 GB, free: 5.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.4666, allocations: 30.92 kB / 0.5409 GB, free: 5.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.4667, allocations: 170 kB / 0.5411 GB, free: 5.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.134e-05/0.4668, allocations: 89.64 kB / 0.5412 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.4669, allocations: 57.05 kB / 0.5413 GB, free: 5.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4671, allocations: 336.3 kB / 0.5416 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.4673, allocations: 101.3 kB / 0.5417 GB, free: 5.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.4677, allocations: 150.5 kB / 0.5418 GB, free: 5.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.4682, allocations: 248.9 kB / 0.5421 GB, free: 5.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4682, allocations: 1.094 kB / 0.5421 GB, free: 5.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00113/0.4693, allocations: 497.8 kB / 0.5425 GB, free: 4.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4693, allocations: 4.875 kB / 0.5425 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.4694, allocations: 2 kB / 0.5425 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009752/0.4703, allocations: 239.5 kB / 0.5428 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.4705, allocations: 36.89 kB / 0.5428 GB, free: 4.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/0.4749, allocations: 3.692 MB / 0.5464 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.4752, allocations: 35.95 kB / 0.5464 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.4753, allocations: 15.62 kB / 0.5465 GB, free: 1.219 MB / 398.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.0002183/0.4755, allocations: 144.8 kB / 0.5466 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.72e-05/0.4756, allocations: 23.86 kB / 0.5466 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.4756, allocations: 38.92 kB / 0.5466 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.4756, allocations: 4 kB / 0.5467 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/0.4757, allocations: 7.938 kB / 0.5467 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.4757, allocations: 0 / 0.5467 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.4774, allocations: 0.8797 MB / 0.5475 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4774, allocations: 7.922 kB / 0.5475 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.843e-05/0.4775, allocations: 12 kB / 0.5475 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008884/0.4784, allocations: 245.5 kB / 0.5478 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.4784, allocations: 4 kB / 0.5478 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004269/0.4827, allocations: 3.693 MB / 0.5514 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4827, allocations: 0 / 0.5514 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.4839, allocations: 0.533 MB / 0.5519 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/0.484, allocations: 124.8 kB / 0.552 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.4841, allocations: 8 kB / 0.552 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.4843, allocations: 27.97 kB / 0.5521 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.4844, allocations: 31.89 kB / 0.5521 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.4845, allocations: 4 kB / 0.5521 GB, free: 11.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001834/0.4846, allocations: 180.5 kB / 0.5523 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4847, allocations: 0 / 0.5523 GB, free: 10.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005691/0.4852, allocations: 111.8 kB / 0.5524 GB, free: 10.77 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.0001734/0.4854, allocations: 99.25 kB / 0.5525 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.4866, allocations: 0.5558 MB / 0.553 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4866, allocations: 0 / 0.553 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006265/0.4872, allocations: 453.1 kB / 0.5534 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.4877, allocations: 48.34 kB / 0.5535 GB, free: 9.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009825/0.4887, allocations: 0.5189 MB / 0.554 GB, free: 9.023 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.489, allocations: 0.7678 MB / 0.5547 GB, free: 8.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.431e-05/0.4891, allocations: 22.28 kB / 0.5548 GB, free: 8.203 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.806e-05/0.4892, allocations: 19.44 kB / 0.5548 GB, free: 8.184 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4892, allocations: 0 / 0.5548 GB, free: 8.184 MB / 414.1 MB Notification: Performance of Templates: time 0.008843/0.498, allocations: 4.606 MB / 0.5593 GB, free: 3.621 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (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) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches