Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001546, allocations: 114 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 185.9 kB / 19.39 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.215/0.215, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.89 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3303, allocations: 60.83 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004633/0.335, allocations: 4.017 MB / 0.5235 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.3372, allocations: 1.218 MB / 0.5247 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003548/0.3376, allocations: 23.59 kB / 0.5247 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.3379, allocations: 114.6 kB / 0.5248 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005861/0.3385, allocations: 183.5 kB / 0.525 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000836/0.3393, allocations: 392.4 kB / 0.5254 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009229/0.3403, allocations: 0.8466 MB / 0.5262 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.3407, allocations: 289.2 kB / 0.5265 GB, free: 14.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004485/0.3412, allocations: 326.1 kB / 0.5268 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.3415, allocations: 322.4 kB / 0.5271 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.693e-05/0.3417, allocations: 64.41 kB / 0.5272 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.3418, allocations: 65.41 kB / 0.5272 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.3419, allocations: 162.5 kB / 0.5274 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003152/0.3422, allocations: 350.3 kB / 0.5277 GB, free: 14.17 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008735/0.3431, allocations: 0.807 MB / 0.5285 GB, free: 13.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3431, allocations: 1.375 kB / 0.5285 GB, free: 13.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3431, allocations: 0 / 0.5285 GB, free: 13.58 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.3432, allocations: 0 / 0.5285 GB, free: 13.58 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.001766/0.3449, allocations: 1.087 MB / 0.5296 GB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.345, allocations: 8.281 kB / 0.5296 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.3451, allocations: 93.28 kB / 0.5297 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007734/0.3459, allocations: 0.5342 MB / 0.5302 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.444e-05/0.346, allocations: 48.47 kB / 0.5302 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.411e-05/0.3461, allocations: 63.42 kB / 0.5303 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3471, allocations: 0.611 MB / 0.5309 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.3472, allocations: 5.344 kB / 0.5309 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.057e-05/0.3472, allocations: 21.47 kB / 0.5309 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.3472, allocations: 18.62 kB / 0.5309 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007981/0.348, allocations: 379.9 kB / 0.5313 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003868/0.3519, allocations: 2.988 MB / 0.5342 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009935/0.3529, allocations: 444.2 kB / 0.5346 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005556/0.3535, allocations: 174.8 kB / 0.5348 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.3536, allocations: 7.859 kB / 0.5348 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.821e-05/0.3536, allocations: 41.78 kB / 0.5348 GB, free: 8.531 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.695e-06/0.3536, allocations: 0 / 0.5348 GB, free: 8.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001725/0.3554, allocations: 0.5383 MB / 0.5354 GB, free: 8.262 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/0.3554, allocations: 110.4 kB / 0.5355 GB, free: 8.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.356, allocations: 0.5425 MB / 0.536 GB, free: 7.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.3561, allocations: 39.98 kB / 0.536 GB, free: 7.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.3563, allocations: 373.9 kB / 0.5364 GB, free: 7.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.3565, allocations: 165.2 kB / 0.5366 GB, free: 7.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.3566, allocations: 112.1 kB / 0.5367 GB, free: 7.215 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3568, allocations: 381.6 kB / 0.537 GB, free: 6.848 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004115/0.3572, allocations: 186.4 kB / 0.5372 GB, free: 6.758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006151/0.3579, allocations: 389.9 kB / 0.5376 GB, free: 6.398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009931/0.3589, allocations: 0.5866 MB / 0.5382 GB, free: 5.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.3589, allocations: 1.062 kB / 0.5382 GB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001217/0.3601, allocations: 0.6582 MB / 0.5388 GB, free: 5.594 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3601, allocations: 7.906 kB / 0.5388 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3601, allocations: 7.312 kB / 0.5388 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.3602, allocations: 10.59 kB / 0.5388 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006288/0.3608, allocations: 137.5 kB / 0.539 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.021e-05/0.3608, allocations: 22.45 kB / 0.539 GB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004263/0.3613, allocations: 73.8 kB / 0.539 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.3613, allocations: 29.69 kB / 0.5391 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005161/0.3619, allocations: 305.8 kB / 0.5394 GB, free: 5.305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005215/0.3624, allocations: 386 kB / 0.5397 GB, free: 4.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009686/0.3634, allocations: 0.5458 MB / 0.5403 GB, free: 4.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.518e-06/0.3634, allocations: 2.719 kB / 0.5403 GB, free: 4.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001143/0.3645, allocations: 0.6216 MB / 0.5409 GB, free: 4.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.3646, allocations: 12.16 kB / 0.5409 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3646, allocations: 10.73 kB / 0.5409 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.3646, allocations: 9.594 kB / 0.5409 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.3651, allocations: 135.1 kB / 0.541 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.3651, allocations: 14.91 kB / 0.541 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004371/0.3656, allocations: 61.06 kB / 0.5411 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.3656, allocations: 26.47 kB / 0.5411 GB, free: 4.102 MB / 398.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.0001846/0.3658, allocations: 223.4 kB / 0.5413 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.366, allocations: 70.59 kB / 0.5414 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.3661, allocations: 78.88 kB / 0.5415 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.3661, allocations: 1.188 kB / 0.5415 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3661, allocations: 5.094 kB / 0.5415 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.3663, allocations: 168.3 kB / 0.5417 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.378e-05/0.3664, allocations: 15.7 kB / 0.5417 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/0.3668, allocations: 26.08 kB / 0.5417 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.57e-05/0.3669, allocations: 29.8 kB / 0.5417 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001901/0.3688, allocations: 0.6891 MB / 0.5424 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001457/0.3702, allocations: 0.8861 MB / 0.5433 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005415/0.3708, allocations: 170.8 kB / 0.5434 GB, free: 2.484 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.3713, allocations: 375.3 kB / 0.5438 GB, free: 2.262 MB / 398.1 MB Notification: Performance of Backend: time 8.91e-07/0.3713, allocations: 0 / 0.5438 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001795/0.3731, allocations: 0.6743 MB / 0.5444 GB, free: 1.742 MB / 398.1 MB Notification: Performance of SimCode: time 0.002754/0.3759, allocations: 1.954 MB / 0.5463 GB, free: 15.74 MB / 414.1 MB Notification: Performance of Templates: time 0.01711/0.393, allocations: 9.56 MB / 0.5557 GB, free: 6.234 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches