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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001068, allocations: 100.8 kB / 291.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3914/0.3914, allocations: 44.13 MB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 51.92 kB / 457.7 MB, free: 2.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3932, allocations: 60.81 MB / 0.5064 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003867/0.3971, allocations: 2.945 MB / 0.5093 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009494/0.3981, allocations: 0.6469 MB / 0.5099 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.3982, allocations: 5.844 kB / 0.5099 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001683/0.3984, allocations: 45.09 kB / 0.51 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.3986, allocations: 80.34 kB / 0.51 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001577/0.3987, allocations: 78.66 kB / 0.5101 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.3991, allocations: 396.4 kB / 0.5105 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.3993, allocations: 110.6 kB / 0.5106 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3994, allocations: 138.1 kB / 0.5107 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.3996, allocations: 154 kB / 0.5109 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.999e-05/0.3997, allocations: 23.28 kB / 0.5109 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.301e-05/0.3998, allocations: 22.88 kB / 0.5109 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.3998, allocations: 62.31 kB / 0.511 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.4, allocations: 159 kB / 0.5111 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.4003, allocations: 361.6 kB / 0.5115 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4003, allocations: 7.219 kB / 0.5115 GB, free: 34.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4003, allocations: 0 / 0.5115 GB, free: 34.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.4003, allocations: 4 kB / 0.5115 GB, free: 34.87 MB / 378.7 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.001047/0.4014, allocations: 0.6337 MB / 0.5121 GB, free: 34.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.4015, allocations: 9.031 kB / 0.5121 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/0.4015, allocations: 34.59 kB / 0.5121 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.4019, allocations: 269.4 kB / 0.5124 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.4019, allocations: 22 kB / 0.5124 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.402, allocations: 27.38 kB / 0.5124 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005557/0.4025, allocations: 330 kB / 0.5128 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.4026, allocations: 3.984 kB / 0.5128 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.4026, allocations: 13.34 kB / 0.5128 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.4026, allocations: 8.625 kB / 0.5128 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.4031, allocations: 240.5 kB / 0.513 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.405, allocations: 1.253 MB / 0.5142 GB, free: 32.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006997/0.4057, allocations: 469.2 kB / 0.5147 GB, free: 32.65 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002799/0.406, allocations: 160.2 kB / 0.5148 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.406, allocations: 2.734 kB / 0.5148 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.406, allocations: 37.64 kB / 0.5149 GB, free: 32.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.583e-06/0.406, allocations: 4 kB / 0.5149 GB, free: 32.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002896/0.4089, allocations: 1.01 MB / 0.5159 GB, free: 32.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.409, allocations: 54.25 kB / 0.5159 GB, free: 32.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.4092, allocations: 242.8 kB / 0.5161 GB, free: 31.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.4092, allocations: 28.48 kB / 0.5162 GB, free: 31.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.4094, allocations: 173 kB / 0.5163 GB, free: 31.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.4094, allocations: 86.22 kB / 0.5164 GB, free: 31.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.619e-05/0.4095, allocations: 61.67 kB / 0.5165 GB, free: 31.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.4096, allocations: 332.2 kB / 0.5168 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.4098, allocations: 103.3 kB / 0.5169 GB, free: 31.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.4101, allocations: 151.3 kB / 0.517 GB, free: 31.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/0.4105, allocations: 245.5 kB / 0.5173 GB, free: 31.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.4105, allocations: 2.875 kB / 0.5173 GB, free: 31.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001147/0.4117, allocations: 490.6 kB / 0.5177 GB, free: 30.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.4117, allocations: 5.469 kB / 0.5177 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.4117, allocations: 1.062 kB / 0.5177 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009752/0.4127, allocations: 243 kB / 0.518 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.4129, allocations: 33.72 kB / 0.518 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00333/0.4162, allocations: 3.42 MB / 0.5214 GB, free: 27.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.4164, allocations: 33.8 kB / 0.5214 GB, free: 27.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.4165, allocations: 12.03 kB / 0.5214 GB, free: 27.85 MB / 378.7 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.0001578/0.4166, allocations: 146.4 kB / 0.5215 GB, free: 27.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.4167, allocations: 28.94 kB / 0.5216 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.57e-05/0.4168, allocations: 32.56 kB / 0.5216 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.4168, allocations: 2.844 kB / 0.5216 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/0.4168, allocations: 6.281 kB / 0.5216 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4168, allocations: 0 / 0.5216 GB, free: 27.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.4184, allocations: 0.8887 MB / 0.5225 GB, free: 27.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4184, allocations: 2.781 kB / 0.5225 GB, free: 27.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.667e-05/0.4185, allocations: 19.72 kB / 0.5225 GB, free: 27.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008202/0.4193, allocations: 235.7 kB / 0.5227 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.4194, allocations: 11.28 kB / 0.5227 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/0.4223, allocations: 3.409 MB / 0.5261 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.4223, allocations: 0 / 0.5261 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.4236, allocations: 1.234 MB / 0.5273 GB, free: 23.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.4237, allocations: 119.7 kB / 0.5274 GB, free: 23.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.4238, allocations: 10.91 kB / 0.5274 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.424, allocations: 31.34 kB / 0.5274 GB, free: 23.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4241, allocations: 28.09 kB / 0.5274 GB, free: 23.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.4241, allocations: 9.625 kB / 0.5275 GB, free: 23.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.4243, allocations: 174.2 kB / 0.5276 GB, free: 22.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4243, allocations: 0 / 0.5276 GB, free: 22.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005629/0.4249, allocations: 108 kB / 0.5277 GB, free: 22.94 MB / 378.7 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.0001199/0.425, allocations: 108.6 kB / 0.5278 GB, free: 22.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009114/0.4259, allocations: 0.5581 MB / 0.5284 GB, free: 22.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4259, allocations: 4.062 kB / 0.5284 GB, free: 22.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000516/0.4264, allocations: 430.9 kB / 0.5288 GB, free: 22.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.4269, allocations: 50.69 kB / 0.5288 GB, free: 22.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009909/0.4279, allocations: 0.8113 MB / 0.5296 GB, free: 21.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.4281, allocations: 0.7756 MB / 0.5304 GB, free: 20.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.4282, allocations: 20.86 kB / 0.5304 GB, free: 20.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.321e-05/0.4283, allocations: 17.84 kB / 0.5304 GB, free: 20.86 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4283, allocations: 0 / 0.5304 GB, free: 20.86 MB / 378.7 MB Notification: Performance of Templates: time 0.007664/0.436, allocations: 4.453 MB / 0.5348 GB, free: 20.56 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches