Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 111.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2076/0.2076, allocations: 46.1 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 75.86 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3348, allocations: 62.43 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005614/0.3405, allocations: 4.044 MB / 0.5356 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0027/0.3432, allocations: 1.27 MB / 0.5368 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007727/0.344, allocations: 22.75 kB / 0.5369 GB, free: 9.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004099/0.3444, allocations: 114.7 kB / 0.537 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000729/0.3452, allocations: 167.7 kB / 0.5371 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009335/0.3461, allocations: 404.2 kB / 0.5375 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.3473, allocations: 0.8444 MB / 0.5383 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005412/0.3479, allocations: 296.4 kB / 0.5386 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000621/0.3485, allocations: 330.4 kB / 0.5389 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004703/0.349, allocations: 323.6 kB / 0.5393 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.3491, allocations: 65.41 kB / 0.5393 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.3493, allocations: 67.97 kB / 0.5394 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.3494, allocations: 159.8 kB / 0.5395 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003264/0.3498, allocations: 343 kB / 0.5399 GB, free: 7.223 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008455/0.3506, allocations: 0.8018 MB / 0.5406 GB, free: 6.602 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3506, allocations: 1.031 kB / 0.5406 GB, free: 6.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3507, allocations: 4 kB / 0.5406 GB, free: 6.598 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.95e-05/0.3507, allocations: 0 / 0.5406 GB, free: 6.598 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001955/0.3527, allocations: 1.061 MB / 0.5417 GB, free: 5.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3527, allocations: 10.19 kB / 0.5417 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000281/0.353, allocations: 97.14 kB / 0.5418 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008857/0.3539, allocations: 0.5419 MB / 0.5423 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.175e-05/0.354, allocations: 44.5 kB / 0.5424 GB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.3541, allocations: 66.78 kB / 0.5424 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.3557, allocations: 0.6166 MB / 0.543 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/0.3558, allocations: 1.188 kB / 0.543 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.729e-05/0.3558, allocations: 22.94 kB / 0.543 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.3559, allocations: 12.72 kB / 0.5431 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.3572, allocations: 388.8 kB / 0.5434 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006224/0.3634, allocations: 2.981 MB / 0.5463 GB, free: 1.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.3651, allocations: 447.5 kB / 0.5468 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000608/0.3657, allocations: 167.5 kB / 0.5469 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.02e-05/0.3658, allocations: 11.33 kB / 0.5469 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.3658, allocations: 37.84 kB / 0.547 GB, free: 1.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 4.699e-06/0.3658, allocations: 0 / 0.547 GB, free: 1.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.002045/0.3679, allocations: 0.5472 MB / 0.5475 GB, free: 1.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.5e-05/0.368, allocations: 132.5 kB / 0.5476 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.369, allocations: 0.5509 MB / 0.5482 GB, free: 400 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.867e-05/0.3691, allocations: 33.7 kB / 0.5482 GB, free: 360 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/0.3696, allocations: 372.2 kB / 0.5486 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.3698, allocations: 157.8 kB / 0.5487 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002596/0.3701, allocations: 126.2 kB / 0.5488 GB, free: 15.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002323/0.3704, allocations: 374.8 kB / 0.5492 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006427/0.371, allocations: 183.4 kB / 0.5494 GB, free: 15.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009321/0.372, allocations: 401.9 kB / 0.5497 GB, free: 14.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.3734, allocations: 0.5789 MB / 0.5503 GB, free: 13.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.3734, allocations: 4 kB / 0.5503 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00194/0.3753, allocations: 0.6523 MB / 0.551 GB, free: 13.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3754, allocations: 8.688 kB / 0.551 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.922e-05/0.3754, allocations: 8 kB / 0.551 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.519e-05/0.3755, allocations: 19.94 kB / 0.551 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008845/0.3764, allocations: 139.7 kB / 0.5511 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.245e-05/0.3764, allocations: 12.08 kB / 0.5511 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007502/0.3772, allocations: 71.41 kB / 0.5512 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.3772, allocations: 31.98 kB / 0.5512 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008291/0.3781, allocations: 309.3 kB / 0.5515 GB, free: 12.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007638/0.3789, allocations: 382 kB / 0.5519 GB, free: 12.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001167/0.38, allocations: 0.5598 MB / 0.5524 GB, free: 11.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.477e-06/0.3801, allocations: 7.984 kB / 0.5524 GB, free: 11.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001856/0.3819, allocations: 0.6209 MB / 0.5531 GB, free: 10.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.382, allocations: 4.719 kB / 0.5531 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.382, allocations: 8 kB / 0.5531 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.382, allocations: 16 kB / 0.5531 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007858/0.3828, allocations: 135.8 kB / 0.5532 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.094e-05/0.3829, allocations: 15.92 kB / 0.5532 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000687/0.3836, allocations: 59.52 kB / 0.5533 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-05/0.3836, allocations: 28 kB / 0.5533 GB, free: 10.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.3839, allocations: 224.5 kB / 0.5535 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002337/0.3841, allocations: 67.25 kB / 0.5536 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.3844, allocations: 74.17 kB / 0.5537 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/0.3844, allocations: 7.922 kB / 0.5537 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3844, allocations: 0 / 0.5537 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.3847, allocations: 172.1 kB / 0.5538 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.3849, allocations: 8 kB / 0.5538 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005991/0.3855, allocations: 31.97 kB / 0.5539 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.3856, allocations: 31.95 kB / 0.5539 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002694/0.3884, allocations: 0.692 MB / 0.5546 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002135/0.3905, allocations: 0.8814 MB / 0.5554 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005782/0.3911, allocations: 175.9 kB / 0.5556 GB, free: 8.297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006483/0.3918, allocations: 379.1 kB / 0.556 GB, free: 7.93 MB / 414.1 MB Notification: Performance of Backend: time 4.31e-07/0.3918, allocations: 0 / 0.556 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.3939, allocations: 0.6781 MB / 0.5566 GB, free: 7.25 MB / 414.1 MB Notification: Performance of SimCode: time 0.002755/0.3967, allocations: 1.916 MB / 0.5585 GB, free: 5.289 MB / 414.1 MB Notification: Performance of Templates: time 0.01735/0.4141, allocations: 9.718 MB / 0.568 GB, free: 11.62 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches