Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 111.3 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 186.2 kB / 19.38 MB, free: 3.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2163/0.2163, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001434, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3406, allocations: 60.82 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003709/0.3444, allocations: 2.915 MB / 0.5224 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.3456, allocations: 0.6487 MB / 0.523 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.3458, allocations: 3.781 kB / 0.523 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.346, allocations: 53.58 kB / 0.5231 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001658/0.3462, allocations: 86.31 kB / 0.5232 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.3464, allocations: 97.33 kB / 0.5233 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004132/0.3468, allocations: 409.7 kB / 0.5237 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002427/0.3471, allocations: 119.3 kB / 0.5238 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.3473, allocations: 152.2 kB / 0.5239 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.3475, allocations: 161.2 kB / 0.5241 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.324e-05/0.3476, allocations: 37.47 kB / 0.5241 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.3476, allocations: 42.31 kB / 0.5241 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.3477, allocations: 71.48 kB / 0.5242 GB, free: 480 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.3478, allocations: 168.2 kB / 0.5244 GB, free: 380 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004462/0.3483, allocations: 390.1 kB / 0.5247 GB, free: 228 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3483, allocations: 1.031 kB / 0.5247 GB, free: 228 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3483, allocations: 0 / 0.5247 GB, free: 228 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.3483, allocations: 0 / 0.5247 GB, free: 228 kB / 382.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.001111/0.3494, allocations: 0.6308 MB / 0.5254 GB, free: 15.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3495, allocations: 9.312 kB / 0.5254 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.207e-05/0.3496, allocations: 35.19 kB / 0.5254 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004266/0.35, allocations: 284.4 kB / 0.5257 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.35, allocations: 20.12 kB / 0.5257 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.3501, allocations: 26.03 kB / 0.5257 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006249/0.3507, allocations: 327.6 kB / 0.526 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3507, allocations: 5.625 kB / 0.526 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.576e-05/0.3508, allocations: 9.656 kB / 0.526 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3508, allocations: 12.08 kB / 0.5261 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000525/0.3513, allocations: 241.8 kB / 0.5263 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.3535, allocations: 1.248 MB / 0.5275 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000792/0.3543, allocations: 469.6 kB / 0.528 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.3546, allocations: 158.5 kB / 0.5281 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3546, allocations: 6.438 kB / 0.5281 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.3547, allocations: 37.55 kB / 0.5281 GB, free: 13.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.3547, allocations: 4 kB / 0.5281 GB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003012/0.3577, allocations: 1.01 MB / 0.5291 GB, free: 13.19 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.543e-05/0.3578, allocations: 62.08 kB / 0.5292 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.3581, allocations: 236.6 kB / 0.5294 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.249e-05/0.3581, allocations: 31.05 kB / 0.5294 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.3583, allocations: 166.5 kB / 0.5296 GB, free: 12.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.389e-05/0.3583, allocations: 85.02 kB / 0.5297 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.3585, allocations: 60.77 kB / 0.5297 GB, free: 12.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3586, allocations: 336.1 kB / 0.5301 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.3589, allocations: 102.5 kB / 0.5302 GB, free: 12.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002748/0.3591, allocations: 141.8 kB / 0.5303 GB, free: 12.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.3596, allocations: 244.8 kB / 0.5305 GB, free: 12.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3597, allocations: 0.9375 kB / 0.5305 GB, free: 12.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001236/0.3609, allocations: 0.4893 MB / 0.531 GB, free: 11.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.3609, allocations: 5.25 kB / 0.531 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.361, allocations: 1.875 kB / 0.531 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.362, allocations: 247.9 kB / 0.5313 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.3622, allocations: 32.2 kB / 0.5313 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.3667, allocations: 3.688 MB / 0.5349 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.367, allocations: 33.67 kB / 0.5349 GB, free: 8.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.367, allocations: 10.16 kB / 0.5349 GB, free: 8.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.0001985/0.3672, allocations: 134.5 kB / 0.5351 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.751e-05/0.3673, allocations: 25.25 kB / 0.5351 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.847e-05/0.3674, allocations: 43.89 kB / 0.5351 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3674, allocations: 3.062 kB / 0.5351 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.3674, allocations: 10.06 kB / 0.5351 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3674, allocations: 1.719 kB / 0.5351 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.3692, allocations: 0.8872 MB / 0.536 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3692, allocations: 0 / 0.536 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.814e-05/0.3693, allocations: 17.78 kB / 0.536 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008908/0.3702, allocations: 242.3 kB / 0.5363 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.3703, allocations: 5.188 kB / 0.5363 GB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00437/0.3747, allocations: 3.69 MB / 0.5399 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3747, allocations: 0 / 0.5399 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.3759, allocations: 0.5342 MB / 0.5404 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.376, allocations: 122.4 kB / 0.5405 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.3761, allocations: 6.219 kB / 0.5405 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.3764, allocations: 28.22 kB / 0.5405 GB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3765, allocations: 28.52 kB / 0.5406 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.3765, allocations: 4.406 kB / 0.5406 GB, free: 3.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002107/0.3767, allocations: 181.5 kB / 0.5407 GB, free: 3.215 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3767, allocations: 0 / 0.5407 GB, free: 3.215 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005147/0.3773, allocations: 115.3 kB / 0.5408 GB, free: 3.188 MB / 398.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.0001479/0.3774, allocations: 104.2 kB / 0.5409 GB, free: 3.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.3786, allocations: 0.5472 MB / 0.5415 GB, free: 2.707 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3786, allocations: 0 / 0.5415 GB, free: 2.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006837/0.3793, allocations: 444.8 kB / 0.5419 GB, free: 2.359 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.3798, allocations: 43.52 kB / 0.5419 GB, free: 2.336 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.3809, allocations: 0.5266 MB / 0.5425 GB, free: 1.969 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.3813, allocations: 0.7661 MB / 0.5432 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.694e-05/0.3814, allocations: 18.47 kB / 0.5432 GB, free: 1.223 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3814, allocations: 1.094 kB / 0.5432 GB, free: 1.223 MB / 398.1 MB Notification: Performance of Templates: time 0.009622/0.391, allocations: 5.589 MB / 0.5487 GB, free: 13.08 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches