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.001381/0.001381, allocations: 115.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002529/0.002529, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.211/0.211, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 71.89 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3299, allocations: 62.45 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.004055/0.334, allocations: 2.922 MB / 0.5345 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.3352, allocations: 0.6856 MB / 0.5352 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.3354, allocations: 4.938 kB / 0.5352 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.3356, allocations: 57.25 kB / 0.5352 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.3358, allocations: 85.62 kB / 0.5353 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.336, allocations: 94.7 kB / 0.5354 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005111/0.3365, allocations: 412 kB / 0.5358 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002954/0.3368, allocations: 124.5 kB / 0.5359 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.337, allocations: 146.8 kB / 0.5361 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/0.3373, allocations: 165.1 kB / 0.5362 GB, free: 10 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.265e-05/0.3374, allocations: 34.47 kB / 0.5363 GB, free: 10 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.257e-05/0.3374, allocations: 33.66 kB / 0.5363 GB, free: 10 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.896e-05/0.3375, allocations: 75.38 kB / 0.5364 GB, free: 9.938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.3377, allocations: 169.4 kB / 0.5365 GB, free: 9.824 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.3382, allocations: 395.6 kB / 0.5369 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.3382, allocations: 0 / 0.5369 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3382, allocations: 0 / 0.5369 GB, free: 9.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.3382, allocations: 0 / 0.5369 GB, free: 9.539 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.001167/0.3394, allocations: 0.632 MB / 0.5375 GB, free: 8.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.3395, allocations: 10.02 kB / 0.5375 GB, free: 8.996 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.3396, allocations: 42.08 kB / 0.5376 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/0.3401, allocations: 281.7 kB / 0.5378 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.3401, allocations: 23.78 kB / 0.5379 GB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.3402, allocations: 25.88 kB / 0.5379 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005983/0.3408, allocations: 320.2 kB / 0.5382 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.3408, allocations: 0.8125 kB / 0.5382 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.3408, allocations: 14.75 kB / 0.5382 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.3408, allocations: 12.02 kB / 0.5382 GB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004672/0.3413, allocations: 240.8 kB / 0.5384 GB, free: 8.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.3432, allocations: 1.243 MB / 0.5397 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000995/0.3443, allocations: 481.8 kB / 0.5401 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.3446, allocations: 164.1 kB / 0.5403 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.3447, allocations: 3.047 kB / 0.5403 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.3447, allocations: 36.3 kB / 0.5403 GB, free: 6.828 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.134e-06/0.3447, allocations: 1.312 kB / 0.5403 GB, free: 6.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.002742/0.3475, allocations: 1.01 MB / 0.5413 GB, free: 6.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.3475, allocations: 57.84 kB / 0.5414 GB, free: 6.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002573/0.3478, allocations: 240.8 kB / 0.5416 GB, free: 5.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.3478, allocations: 31.77 kB / 0.5416 GB, free: 5.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.348, allocations: 168.3 kB / 0.5418 GB, free: 5.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.695e-05/0.348, allocations: 89.61 kB / 0.5419 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.708e-05/0.3481, allocations: 53.17 kB / 0.5419 GB, free: 5.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3483, allocations: 336.8 kB / 0.5422 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.3485, allocations: 101.9 kB / 0.5423 GB, free: 5.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.3488, allocations: 149.4 kB / 0.5425 GB, free: 5.191 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.3492, allocations: 241.7 kB / 0.5427 GB, free: 5.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3492, allocations: 3.938 kB / 0.5427 GB, free: 5.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001034/0.3502, allocations: 498.2 kB / 0.5432 GB, free: 4.781 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3503, allocations: 5.531 kB / 0.5432 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3503, allocations: 1.125 kB / 0.5432 GB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009169/0.3512, allocations: 236.3 kB / 0.5434 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3514, allocations: 28.33 kB / 0.5434 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004058/0.3554, allocations: 3.692 MB / 0.547 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.3557, allocations: 44.2 kB / 0.5471 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.3557, allocations: 10.69 kB / 0.5471 GB, free: 1.242 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.000165/0.3559, allocations: 141.6 kB / 0.5472 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.356, allocations: 27.72 kB / 0.5473 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.405e-05/0.3561, allocations: 34.86 kB / 0.5473 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.3561, allocations: 0 / 0.5473 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3561, allocations: 0 / 0.5473 GB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.3562, allocations: 136.6 kB / 0.5474 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.3563, allocations: 8 kB / 0.5474 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.3565, allocations: 27.92 kB / 0.5475 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.945e-05/0.3566, allocations: 35.94 kB / 0.5475 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001269/0.3579, allocations: 0.5342 MB / 0.548 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000752/0.3587, allocations: 0.5569 MB / 0.5486 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001983/0.3589, allocations: 95.94 kB / 0.5486 GB, free: 15.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.359, allocations: 172.5 kB / 0.5488 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Backend: time 6.71e-07/0.359, allocations: 0 / 0.5488 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.3602, allocations: 0.553 MB / 0.5494 GB, free: 14.85 MB / 414.1 MB Notification: Performance of SimCode: time 0.00109/0.3613, allocations: 1.02 MB / 0.5503 GB, free: 13.78 MB / 414.1 MB Notification: Performance of Templates: time 0.009434/0.3707, allocations: 4.543 MB / 0.5548 GB, free: 9.277 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