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.001234/0.001234, allocations: 104.9 kB / 17.77 MB, free: 5.27 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.001357/0.001357, allocations: 184.8 kB / 18.71 MB, free: 4.348 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.56/1.56, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.253/0.253, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 68.14 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4049, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.005084/0.41, allocations: 2.913 MB / 0.5217 GB, free: 1.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.4118, allocations: 0.6432 MB / 0.5224 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.412, allocations: 5.562 kB / 0.5224 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.4123, allocations: 56.81 kB / 0.5224 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.4126, allocations: 91.09 kB / 0.5225 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.4128, allocations: 92.7 kB / 0.5226 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000654/0.4135, allocations: 410.3 kB / 0.523 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.4138, allocations: 123.5 kB / 0.5231 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.414, allocations: 148.1 kB / 0.5232 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.4143, allocations: 161.1 kB / 0.5234 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.771e-05/0.4143, allocations: 35.03 kB / 0.5234 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.245e-05/0.4144, allocations: 38.09 kB / 0.5235 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.698e-05/0.4145, allocations: 69.56 kB / 0.5235 GB, free: 480 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.4147, allocations: 173.1 kB / 0.5237 GB, free: 376 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005205/0.4152, allocations: 390.4 kB / 0.5241 GB, free: 224 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4152, allocations: 0 / 0.5241 GB, free: 224 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4152, allocations: 1.875 kB / 0.5241 GB, free: 224 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.4153, allocations: 4 kB / 0.5241 GB, free: 220 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.00107/0.4163, allocations: 0.6298 MB / 0.5247 GB, free: 15.72 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.4164, allocations: 9.188 kB / 0.5247 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.4165, allocations: 34.69 kB / 0.5247 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.4171, allocations: 277.6 kB / 0.525 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.144e-05/0.4171, allocations: 23.69 kB / 0.525 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.4172, allocations: 25.44 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007626/0.4179, allocations: 331.9 kB / 0.5254 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.418, allocations: 0 / 0.5254 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.185e-05/0.418, allocations: 12.12 kB / 0.5254 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.418, allocations: 6.875 kB / 0.5254 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006532/0.4187, allocations: 237.5 kB / 0.5256 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002267/0.421, allocations: 1.259 MB / 0.5268 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007678/0.4217, allocations: 468.8 kB / 0.5273 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003055/0.4221, allocations: 165.2 kB / 0.5274 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.4221, allocations: 6.922 kB / 0.5274 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.4221, allocations: 37.55 kB / 0.5275 GB, free: 13.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.4221, allocations: 0 / 0.5275 GB, free: 13.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003003/0.4251, allocations: 1.014 MB / 0.5285 GB, free: 13.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.4252, allocations: 55.31 kB / 0.5285 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.4255, allocations: 243.5 kB / 0.5288 GB, free: 12.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.4255, allocations: 32.17 kB / 0.5288 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.4256, allocations: 172.8 kB / 0.529 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.546e-05/0.4257, allocations: 82.53 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.123e-05/0.4258, allocations: 56.27 kB / 0.5291 GB, free: 12.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4259, allocations: 332 kB / 0.5294 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.4262, allocations: 97.3 kB / 0.5295 GB, free: 12.26 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.4264, allocations: 154.8 kB / 0.5296 GB, free: 12.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004751/0.4269, allocations: 245 kB / 0.5299 GB, free: 12.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4269, allocations: 1.5 kB / 0.5299 GB, free: 12.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001267/0.4282, allocations: 492.1 kB / 0.5303 GB, free: 11.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.4283, allocations: 16.3 kB / 0.5304 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.4283, allocations: 6.078 kB / 0.5304 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.4294, allocations: 238.7 kB / 0.5306 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.4296, allocations: 36.52 kB / 0.5306 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.4342, allocations: 3.678 MB / 0.5342 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.4345, allocations: 35.8 kB / 0.5343 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.4345, allocations: 6.875 kB / 0.5343 GB, free: 8.215 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.0001926/0.4347, allocations: 146.6 kB / 0.5344 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.823e-05/0.4347, allocations: 25.09 kB / 0.5344 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.651e-05/0.4348, allocations: 35.83 kB / 0.5345 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4348, allocations: 2.656 kB / 0.5345 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.65e-05/0.4349, allocations: 11.16 kB / 0.5345 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.4349, allocations: 3.984 kB / 0.5345 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.4366, allocations: 0.8919 MB / 0.5354 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4367, allocations: 0 / 0.5354 GB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.894e-05/0.4368, allocations: 18 kB / 0.5354 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008978/0.4377, allocations: 238.1 kB / 0.5356 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.4377, allocations: 1.156 kB / 0.5356 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004116/0.4418, allocations: 3.69 MB / 0.5392 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4418, allocations: 4.062 kB / 0.5392 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.443, allocations: 0.5344 MB / 0.5397 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.4432, allocations: 123.2 kB / 0.5398 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.232e-05/0.4432, allocations: 1.188 kB / 0.5398 GB, free: 3.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.4435, allocations: 27.52 kB / 0.5399 GB, free: 3.348 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.4436, allocations: 36.95 kB / 0.5399 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.4436, allocations: 5.125 kB / 0.5399 GB, free: 3.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.4438, allocations: 177.1 kB / 0.5401 GB, free: 3.203 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4438, allocations: 0 / 0.5401 GB, free: 3.203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004862/0.4443, allocations: 111.3 kB / 0.5402 GB, free: 3.18 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.0001354/0.4444, allocations: 104.1 kB / 0.5403 GB, free: 3.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.4456, allocations: 0.5514 MB / 0.5408 GB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4456, allocations: 0 / 0.5408 GB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006298/0.4462, allocations: 439.5 kB / 0.5412 GB, free: 2.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.4466, allocations: 48.2 kB / 0.5413 GB, free: 2.324 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.4477, allocations: 0.5068 MB / 0.5418 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.4481, allocations: 0.7633 MB / 0.5425 GB, free: 1.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.4482, allocations: 28.08 kB / 0.5426 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.954e-05/0.4482, allocations: 17.28 kB / 0.5426 GB, free: 1.215 MB / 398.1 MB Notification: Performance of SimCode: time 5.1e-07/0.4483, allocations: 0 / 0.5426 GB, free: 1.215 MB / 398.1 MB Notification: Performance of Templates: time 0.008986/0.4572, allocations: 4.613 MB / 0.5471 GB, free: 14.07 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/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_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches