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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.002115/0.002114, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001102/0.001102, allocations: 105.2 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4526/0.4526, allocations: 44.84 MB / 392.7 MB, free: 34.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64.17 kB / 465.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4755/0.4768, allocations: 62 MB / 0.5151 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003822/0.4806, allocations: 2.978 MB / 0.5181 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.4818, allocations: 0.678 MB / 0.5187 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.4819, allocations: 2.844 kB / 0.5187 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.4821, allocations: 45.58 kB / 0.5188 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.4823, allocations: 76.22 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001614/0.4824, allocations: 76.55 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.4828, allocations: 400.5 kB / 0.5193 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000238/0.483, allocations: 106.6 kB / 0.5194 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.4832, allocations: 137.2 kB / 0.5195 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.4833, allocations: 156.6 kB / 0.5197 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.292e-05/0.4834, allocations: 23.5 kB / 0.5197 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.014e-05/0.4835, allocations: 23.03 kB / 0.5197 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.475e-05/0.4835, allocations: 69.11 kB / 0.5198 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.4837, allocations: 153.2 kB / 0.5199 GB, free: 34.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.484, allocations: 372.2 kB / 0.5203 GB, free: 34.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.484, allocations: 0 / 0.5203 GB, free: 34.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.484, allocations: 0 / 0.5203 GB, free: 34.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.484, allocations: 0 / 0.5203 GB, free: 34.46 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.0009471/0.4849, allocations: 0.6269 MB / 0.5209 GB, free: 33.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.485, allocations: 8.781 kB / 0.5209 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.93e-05/0.4851, allocations: 38.03 kB / 0.5209 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.4854, allocations: 269.3 kB / 0.5212 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.4854, allocations: 24.53 kB / 0.5212 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.4854, allocations: 29.97 kB / 0.5212 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.4859, allocations: 329.3 kB / 0.5216 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.486, allocations: 0 / 0.5216 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.486, allocations: 10.94 kB / 0.5216 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.486, allocations: 5.781 kB / 0.5216 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004549/0.4865, allocations: 242.9 kB / 0.5218 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.4883, allocations: 1.262 MB / 0.523 GB, free: 32.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006859/0.489, allocations: 472.5 kB / 0.5235 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002783/0.4893, allocations: 166.8 kB / 0.5237 GB, free: 32.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.4893, allocations: 2.859 kB / 0.5237 GB, free: 32.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.4893, allocations: 41.67 kB / 0.5237 GB, free: 32.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.4893, allocations: 0 / 0.5237 GB, free: 32.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002732/0.4921, allocations: 1.01 MB / 0.5247 GB, free: 31.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.4921, allocations: 54 kB / 0.5247 GB, free: 31.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.4923, allocations: 242.9 kB / 0.525 GB, free: 31.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.4924, allocations: 32.27 kB / 0.525 GB, free: 31.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.401e-05/0.4925, allocations: 175.8 kB / 0.5252 GB, free: 31.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.4925, allocations: 79.95 kB / 0.5252 GB, free: 31.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.4926, allocations: 52.41 kB / 0.5253 GB, free: 31.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.652e-05/0.4927, allocations: 338.4 kB / 0.5256 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.4929, allocations: 95.84 kB / 0.5257 GB, free: 30.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.4931, allocations: 151.3 kB / 0.5258 GB, free: 30.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.4935, allocations: 250.5 kB / 0.5261 GB, free: 30.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4936, allocations: 0 / 0.5261 GB, free: 30.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001015/0.4946, allocations: 485 kB / 0.5265 GB, free: 30.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.4946, allocations: 6.062 kB / 0.5266 GB, free: 30.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.4946, allocations: 7.141 kB / 0.5266 GB, free: 30.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009243/0.4956, allocations: 244.1 kB / 0.5268 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.4957, allocations: 31.36 kB / 0.5268 GB, free: 30.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003428/0.4991, allocations: 3.416 MB / 0.5302 GB, free: 27.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000237/0.4994, allocations: 34.23 kB / 0.5302 GB, free: 27.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.4994, allocations: 9.578 kB / 0.5302 GB, free: 27.44 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.0001756/0.4996, allocations: 147.9 kB / 0.5303 GB, free: 27.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.942e-05/0.4997, allocations: 25.84 kB / 0.5304 GB, free: 27.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.073e-05/0.4997, allocations: 32.89 kB / 0.5304 GB, free: 27.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4997, allocations: 9.125 kB / 0.5304 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.4998, allocations: 2.562 kB / 0.5304 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4998, allocations: 0 / 0.5304 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.5012, allocations: 0.8838 MB / 0.5313 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.5012, allocations: 0 / 0.5313 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.685e-05/0.5013, allocations: 22 kB / 0.5313 GB, free: 26.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008548/0.5022, allocations: 240.9 kB / 0.5315 GB, free: 26.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.5022, allocations: 7 kB / 0.5315 GB, free: 26.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.5051, allocations: 3.42 MB / 0.5349 GB, free: 23.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5052, allocations: 3.938 kB / 0.5349 GB, free: 23.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.5065, allocations: 1.231 MB / 0.5361 GB, free: 22.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.5066, allocations: 129.3 kB / 0.5362 GB, free: 22.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.5066, allocations: 7.938 kB / 0.5362 GB, free: 22.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.5068, allocations: 26.5 kB / 0.5362 GB, free: 22.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.301e-05/0.5069, allocations: 28.84 kB / 0.5363 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.507, allocations: 5.312 kB / 0.5363 GB, free: 22.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.5071, allocations: 174.4 kB / 0.5364 GB, free: 22.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5071, allocations: 4 kB / 0.5364 GB, free: 22.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005664/0.5077, allocations: 103.8 kB / 0.5365 GB, free: 22.52 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.0001156/0.5078, allocations: 104.1 kB / 0.5366 GB, free: 22.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008816/0.5087, allocations: 0.5595 MB / 0.5372 GB, free: 22.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5087, allocations: 0 / 0.5372 GB, free: 22.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.5092, allocations: 433.2 kB / 0.5376 GB, free: 21.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004371/0.5096, allocations: 47.75 kB / 0.5376 GB, free: 21.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009371/0.5106, allocations: 0.8151 MB / 0.5384 GB, free: 21.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.5108, allocations: 0.7719 MB / 0.5392 GB, free: 20.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.091e-05/0.5109, allocations: 23.52 kB / 0.5392 GB, free: 20.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.5109, allocations: 15.69 kB / 0.5392 GB, free: 20.45 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.5109, allocations: 4 kB / 0.5392 GB, free: 20.44 MB / 378.7 MB Notification: Performance of Templates: time 0.009078/0.52, allocations: 4.444 MB / 0.5436 GB, free: 20.14 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches