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.001212/0.001212, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 75.89 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4365, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004278/0.4408, allocations: 2.92 MB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.4421, allocations: 0.6854 MB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.4423, allocations: 5.5 kB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001798/0.4425, allocations: 52.94 kB / 0.5346 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.4427, allocations: 92.8 kB / 0.5346 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.4429, allocations: 90.75 kB / 0.5347 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.4433, allocations: 416.2 kB / 0.5351 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.4435, allocations: 116.8 kB / 0.5352 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.4437, allocations: 153.4 kB / 0.5354 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.4439, allocations: 169.6 kB / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.645e-05/0.444, allocations: 34.72 kB / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.586e-05/0.4441, allocations: 37.16 kB / 0.5356 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.245e-05/0.4441, allocations: 76.78 kB / 0.5357 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.4443, allocations: 161.1 kB / 0.5358 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.4447, allocations: 390 kB / 0.5362 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4447, allocations: 0.875 kB / 0.5362 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4447, allocations: 0 / 0.5362 GB, free: 9.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.4447, allocations: 0 / 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.001073/0.4458, allocations: 0.6371 MB / 0.5368 GB, free: 8.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4458, allocations: 9.672 kB / 0.5369 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.701e-05/0.4459, allocations: 38.25 kB / 0.5369 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.4464, allocations: 281.7 kB / 0.5372 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.4464, allocations: 19.19 kB / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.286e-05/0.4464, allocations: 25.88 kB / 0.5372 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006098/0.4471, allocations: 333.4 kB / 0.5375 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.4471, allocations: 0 / 0.5375 GB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.4471, allocations: 15.19 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.4471, allocations: 6.75 kB / 0.5375 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.4476, allocations: 237.7 kB / 0.5378 GB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.4497, allocations: 1.248 MB / 0.539 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008388/0.4506, allocations: 481 kB / 0.5394 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003118/0.4509, allocations: 158 kB / 0.5396 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.4509, allocations: 1.797 kB / 0.5396 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.451, allocations: 41.7 kB / 0.5396 GB, free: 6.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.913e-06/0.451, allocations: 4 kB / 0.5396 GB, free: 6.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003126/0.4541, allocations: 1.011 MB / 0.5406 GB, free: 6.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.4542, allocations: 54.72 kB / 0.5407 GB, free: 6.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.4545, allocations: 240.3 kB / 0.5409 GB, free: 5.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.4545, allocations: 30.89 kB / 0.5409 GB, free: 5.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.4546, allocations: 165.5 kB / 0.5411 GB, free: 5.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.453e-05/0.4547, allocations: 89.95 kB / 0.5412 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.4549, allocations: 56.17 kB / 0.5412 GB, free: 5.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002801/0.4552, allocations: 336.3 kB / 0.5416 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.4554, allocations: 101.5 kB / 0.5417 GB, free: 5.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003266/0.4558, allocations: 146.8 kB / 0.5418 GB, free: 5.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000554/0.4563, allocations: 244.6 kB / 0.542 GB, free: 5.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.4564, allocations: 9.219 kB / 0.542 GB, free: 5.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0014/0.4578, allocations: 493.1 kB / 0.5425 GB, free: 4.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.4578, allocations: 5.625 kB / 0.5425 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.4578, allocations: 2.125 kB / 0.5425 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.4589, allocations: 235.4 kB / 0.5427 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.4591, allocations: 40.42 kB / 0.5428 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005089/0.4642, allocations: 3.693 MB / 0.5464 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.4645, allocations: 35.27 kB / 0.5464 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.4646, allocations: 12.06 kB / 0.5464 GB, free: 1.238 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.0002128/0.4648, allocations: 137.5 kB / 0.5466 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.502e-05/0.4649, allocations: 24.66 kB / 0.5466 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.111e-05/0.465, allocations: 40.64 kB / 0.5466 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.465, allocations: 4.188 kB / 0.5466 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-05/0.465, allocations: 7.938 kB / 0.5466 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.465, allocations: 0 / 0.5466 GB, free: 1.047 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.4669, allocations: 0.8834 MB / 0.5475 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4669, allocations: 0 / 0.5475 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.641e-05/0.467, allocations: 27.92 kB / 0.5475 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009843/0.468, allocations: 233.5 kB / 0.5477 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.468, allocations: 4 kB / 0.5477 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004113/0.4721, allocations: 3.688 MB / 0.5513 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4721, allocations: 0 / 0.5513 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.4733, allocations: 0.5329 MB / 0.5519 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.4734, allocations: 120.7 kB / 0.552 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.4735, allocations: 8 kB / 0.552 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.4737, allocations: 27.97 kB / 0.552 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.4738, allocations: 23.97 kB / 0.552 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.4738, allocations: 8 kB / 0.552 GB, free: 11.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002312/0.4741, allocations: 180.4 kB / 0.5522 GB, free: 10.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4741, allocations: 0 / 0.5522 GB, free: 10.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004986/0.4746, allocations: 111.8 kB / 0.5523 GB, free: 10.82 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.0001551/0.4747, allocations: 107.2 kB / 0.5524 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.4758, allocations: 0.5596 MB / 0.553 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4758, allocations: 0 / 0.553 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005928/0.4764, allocations: 445.2 kB / 0.5534 GB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.4768, allocations: 36.42 kB / 0.5534 GB, free: 9.629 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.4779, allocations: 0.516 MB / 0.5539 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.4783, allocations: 0.7678 MB / 0.5547 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.4784, allocations: 26.28 kB / 0.5547 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.4784, allocations: 15.44 kB / 0.5547 GB, free: 8.246 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4785, allocations: 0 / 0.5547 GB, free: 8.246 MB / 414.1 MB Notification: Performance of Templates: time 0.009072/0.4875, allocations: 4.751 MB / 0.5594 GB, free: 3.539 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