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.001426/0.001426, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001639/0.00164, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.539/1.539, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2453/0.2453, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4702/0.4716, 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.004206/0.4759, allocations: 2.924 MB / 0.5338 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.4771, allocations: 0.6866 MB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.4772, allocations: 4.125 kB / 0.5345 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.4774, allocations: 56.94 kB / 0.5346 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.4776, allocations: 90.19 kB / 0.5347 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.4777, allocations: 90.73 kB / 0.5347 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004443/0.4782, allocations: 412.2 kB / 0.5351 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.4785, allocations: 125.1 kB / 0.5353 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.4786, allocations: 145.8 kB / 0.5354 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.4789, allocations: 165 kB / 0.5356 GB, free: 10 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.815e-05/0.4789, allocations: 34.97 kB / 0.5356 GB, free: 10 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.059e-05/0.479, allocations: 38.16 kB / 0.5356 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-05/0.4791, allocations: 75.53 kB / 0.5357 GB, free: 9.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.4793, allocations: 168.9 kB / 0.5359 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004422/0.4797, allocations: 386.8 kB / 0.5362 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.515e-06/0.4797, allocations: 1.312 kB / 0.5362 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4797, allocations: 7.938 kB / 0.5362 GB, free: 9.531 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.4798, allocations: 0 / 0.5362 GB, free: 9.531 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.001079/0.4808, allocations: 0.6313 MB / 0.5368 GB, free: 8.988 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.4809, allocations: 11.8 kB / 0.5369 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/0.481, allocations: 37.25 kB / 0.5369 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.4814, allocations: 272.9 kB / 0.5372 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.4814, allocations: 24.91 kB / 0.5372 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.818e-05/0.4815, allocations: 25.59 kB / 0.5372 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006452/0.4821, allocations: 328.4 kB / 0.5375 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.4822, allocations: 1.156 kB / 0.5375 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.4822, allocations: 10.53 kB / 0.5375 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.4822, allocations: 6.75 kB / 0.5375 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005218/0.4827, allocations: 242.5 kB / 0.5378 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.4849, allocations: 1.247 MB / 0.539 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000934/0.4858, allocations: 479.8 kB / 0.5394 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003675/0.4862, allocations: 165.1 kB / 0.5396 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.4862, allocations: 3.297 kB / 0.5396 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.4863, allocations: 36.7 kB / 0.5396 GB, free: 6.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.513e-06/0.4863, allocations: 0 / 0.5396 GB, free: 6.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.003436/0.4897, allocations: 1.014 MB / 0.5406 GB, free: 6.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.4898, allocations: 55.25 kB / 0.5407 GB, free: 6.156 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.4901, allocations: 243.8 kB / 0.5409 GB, free: 5.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.4901, allocations: 27.86 kB / 0.5409 GB, free: 5.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.4903, allocations: 172.3 kB / 0.5411 GB, free: 5.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.4903, allocations: 89.61 kB / 0.5412 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.4905, allocations: 58.23 kB / 0.5412 GB, free: 5.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4906, allocations: 331.7 kB / 0.5416 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.4909, allocations: 97.33 kB / 0.5417 GB, free: 5.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.4912, allocations: 162.8 kB / 0.5418 GB, free: 5.184 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004947/0.4917, allocations: 236.1 kB / 0.542 GB, free: 5.047 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.4917, allocations: 1.594 kB / 0.542 GB, free: 5.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001245/0.4929, allocations: 492.9 kB / 0.5425 GB, free: 4.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.493, allocations: 9.703 kB / 0.5425 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.493, allocations: 5.125 kB / 0.5425 GB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001449/0.4944, allocations: 239.7 kB / 0.5427 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.4947, allocations: 28.34 kB / 0.5428 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006238/0.5009, allocations: 3.688 MB / 0.5464 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.5014, allocations: 36.36 kB / 0.5464 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.5014, allocations: 6.531 kB / 0.5464 GB, free: 1.25 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.0002547/0.5017, allocations: 142.2 kB / 0.5466 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.926e-05/0.5018, allocations: 25.41 kB / 0.5466 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.5019, allocations: 36.11 kB / 0.5466 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.5019, allocations: 8.125 kB / 0.5466 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.188e-05/0.502, allocations: 7.938 kB / 0.5466 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.502, allocations: 3.984 kB / 0.5466 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.5043, allocations: 0.8913 MB / 0.5475 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.5044, allocations: 0 / 0.5475 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.5045, allocations: 16 kB / 0.5475 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.5058, allocations: 241.9 kB / 0.5477 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.5058, allocations: 0 / 0.5477 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005643/0.5115, allocations: 3.688 MB / 0.5513 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5115, allocations: 3.938 kB / 0.5514 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.5131, allocations: 0.5329 MB / 0.5519 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002181/0.5133, allocations: 120.7 kB / 0.552 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.5134, allocations: 8 kB / 0.552 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003293/0.5137, allocations: 27.98 kB / 0.552 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.5139, allocations: 31.95 kB / 0.5521 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.5139, allocations: 4 kB / 0.5521 GB, free: 11.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002761/0.5142, allocations: 172.5 kB / 0.5522 GB, free: 10.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5142, allocations: 4 kB / 0.5522 GB, free: 10.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007248/0.515, allocations: 107.8 kB / 0.5523 GB, free: 10.83 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.0002212/0.5152, allocations: 107.2 kB / 0.5524 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.5167, allocations: 0.5635 MB / 0.553 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5167, allocations: 0 / 0.553 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008684/0.5176, allocations: 441 kB / 0.5534 GB, free: 9.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.5183, allocations: 54.41 kB / 0.5535 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.5199, allocations: 0.508 MB / 0.5539 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006105/0.5205, allocations: 0.7639 MB / 0.5547 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.5206, allocations: 22.3 kB / 0.5547 GB, free: 8.266 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.342e-05/0.5207, allocations: 15.44 kB / 0.5547 GB, free: 8.25 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5207, allocations: 0 / 0.5547 GB, free: 8.25 MB / 414.1 MB Notification: Performance of Templates: time 0.01359/0.5343, allocations: 4.613 MB / 0.5592 GB, free: 3.676 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