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.001097/0.001098, allocations: 111 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 211.9 kB / 19.42 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2004/0.2004, allocations: 46.09 MB / 345 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001534, allocations: 75.88 kB / 482 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3465, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004255/0.3508, allocations: 2.926 MB / 0.5345 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.352, allocations: 0.6811 MB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.3522, allocations: 6.031 kB / 0.5352 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.3524, allocations: 61.12 kB / 0.5352 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.3526, allocations: 84.75 kB / 0.5353 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001798/0.3528, allocations: 99.52 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000436/0.3532, allocations: 403.5 kB / 0.5358 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.3535, allocations: 125.2 kB / 0.5359 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.3537, allocations: 153.4 kB / 0.5361 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.3539, allocations: 166 kB / 0.5362 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.727e-05/0.3539, allocations: 34.09 kB / 0.5363 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.325e-05/0.354, allocations: 34.03 kB / 0.5363 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-05/0.3541, allocations: 75.78 kB / 0.5364 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.3543, allocations: 165.3 kB / 0.5365 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004462/0.3547, allocations: 397 kB / 0.5369 GB, free: 9.547 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3547, allocations: 1.344 kB / 0.5369 GB, free: 9.547 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3547, allocations: 3.938 kB / 0.5369 GB, free: 9.543 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.3548, allocations: 0 / 0.5369 GB, free: 9.543 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.001035/0.3558, allocations: 0.6395 MB / 0.5375 GB, free: 8.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3559, allocations: 10.02 kB / 0.5375 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.417e-05/0.3559, allocations: 38.06 kB / 0.5376 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.3563, allocations: 277.9 kB / 0.5378 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.777e-05/0.3564, allocations: 23.81 kB / 0.5379 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/0.3564, allocations: 25.38 kB / 0.5379 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006066/0.357, allocations: 329.7 kB / 0.5382 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3571, allocations: 0 / 0.5382 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.3571, allocations: 11.25 kB / 0.5382 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3571, allocations: 7.031 kB / 0.5382 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005271/0.3577, allocations: 242.4 kB / 0.5385 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.3597, allocations: 1.251 MB / 0.5397 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008076/0.3605, allocations: 479.2 kB / 0.5401 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.3608, allocations: 162.1 kB / 0.5403 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.3609, allocations: 4.172 kB / 0.5403 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.3609, allocations: 40.02 kB / 0.5403 GB, free: 6.824 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.3609, allocations: 0 / 0.5403 GB, free: 6.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002828/0.3637, allocations: 1.015 MB / 0.5413 GB, free: 6.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.3638, allocations: 58.75 kB / 0.5414 GB, free: 6.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002656/0.3641, allocations: 236 kB / 0.5416 GB, free: 5.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.3641, allocations: 31.2 kB / 0.5416 GB, free: 5.941 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3642, allocations: 169.9 kB / 0.5418 GB, free: 5.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.843e-05/0.3643, allocations: 94.69 kB / 0.5419 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.601e-05/0.3644, allocations: 52.83 kB / 0.5419 GB, free: 5.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3645, allocations: 331.2 kB / 0.5422 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.3648, allocations: 105.5 kB / 0.5423 GB, free: 5.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.3651, allocations: 154.9 kB / 0.5425 GB, free: 5.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004658/0.3655, allocations: 240.7 kB / 0.5427 GB, free: 5.039 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3655, allocations: 4.969 kB / 0.5427 GB, free: 5.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00111/0.3667, allocations: 497.5 kB / 0.5432 GB, free: 4.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3667, allocations: 8.781 kB / 0.5432 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3667, allocations: 0 / 0.5432 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009463/0.3676, allocations: 236.2 kB / 0.5434 GB, free: 4.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.3678, allocations: 32.52 kB / 0.5435 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004254/0.3721, allocations: 3.689 MB / 0.5471 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/0.3723, allocations: 44.02 kB / 0.5471 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3723, allocations: 15.34 kB / 0.5471 GB, free: 1.227 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.0001787/0.3725, allocations: 145.1 kB / 0.5473 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.293e-05/0.3726, allocations: 23.86 kB / 0.5473 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.17e-05/0.3727, allocations: 34.86 kB / 0.5473 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3727, allocations: 0 / 0.5473 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3727, allocations: 0 / 0.5473 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.3728, allocations: 136.8 kB / 0.5475 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.3728, allocations: 7.984 kB / 0.5475 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.3731, allocations: 23.98 kB / 0.5475 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.001e-05/0.3732, allocations: 35.94 kB / 0.5475 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001297/0.3745, allocations: 0.5343 MB / 0.548 GB, free: 268 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007804/0.3753, allocations: 0.5571 MB / 0.5486 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001971/0.3755, allocations: 95.92 kB / 0.5487 GB, free: 15.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001523/0.3756, allocations: 172.5 kB / 0.5488 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Backend: time 4.61e-07/0.3756, allocations: 0 / 0.5488 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.3767, allocations: 0.5501 MB / 0.5494 GB, free: 14.85 MB / 414.1 MB Notification: Performance of SimCode: time 0.001258/0.378, allocations: 1.042 MB / 0.5504 GB, free: 13.75 MB / 414.1 MB Notification: Performance of Templates: time 0.00826/0.3863, allocations: 4.404 MB / 0.5547 GB, free: 9.391 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/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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches