Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 94.28 kB / 15.7 MB, free: 448 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 170.4 kB / 16.57 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.249/2.249, allocations: 205.4 MB / 222.8 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5361/0.5361, allocations: 43.57 MB / 314.6 MB, free: 8.898 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006893/0.0006894, allocations: 16 kB / 383.9 MB, free: 8.262 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1803, allocations: 58.86 MB / 442.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005709/0.1861, allocations: 3.428 MB / 446.2 MB, free: 9.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.1893, allocations: 1.213 MB / 447.4 MB, free: 8.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004204/0.1898, allocations: 23.88 kB / 447.5 MB, free: 8.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002601/0.19, allocations: 79.22 kB / 447.5 MB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004726/0.1905, allocations: 134.9 kB / 447.7 MB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006688/0.1912, allocations: 303.5 kB / 448 MB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007828/0.192, allocations: 0.7448 MB / 448.7 MB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004141/0.1924, allocations: 220.8 kB / 448.9 MB, free: 7.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000324/0.1927, allocations: 242.7 kB / 449.2 MB, free: 6.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002872/0.193, allocations: 254.5 kB / 449.4 MB, free: 6.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.1931, allocations: 23.94 kB / 449.4 MB, free: 6.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.668e-05/0.1932, allocations: 24 kB / 449.5 MB, free: 6.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.1933, allocations: 99.47 kB / 449.6 MB, free: 6.492 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1934, allocations: 145.2 kB / 449.7 MB, free: 6.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005212/0.1939, allocations: 0.5455 MB / 450.3 MB, free: 5.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1939, allocations: 4 kB / 450.3 MB, free: 5.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1939, allocations: 4 kB / 450.3 MB, free: 5.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.194, allocations: 0 / 450.3 MB, free: 5.789 MB / 382.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.001618/0.1956, allocations: 0.9502 MB / 451.2 MB, free: 4.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.1956, allocations: 12.03 kB / 451.2 MB, free: 4.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001447/0.1958, allocations: 90.88 kB / 451.3 MB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007224/0.1965, allocations: 482.6 kB / 451.8 MB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.916e-05/0.1966, allocations: 45.31 kB / 451.8 MB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.1967, allocations: 63.91 kB / 451.9 MB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.1978, allocations: 0.6154 MB / 452.5 MB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.1978, allocations: 3.938 kB / 452.5 MB, free: 3.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.596e-05/0.1979, allocations: 27.95 kB / 452.5 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.1979, allocations: 12 kB / 452.5 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007826/0.1987, allocations: 398.2 kB / 452.9 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3416/0.5403, allocations: 3.031 MB / 456 MB, free: 46.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009598/0.5413, allocations: 470.6 kB / 456.4 MB, free: 46.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.5416, allocations: 183.5 kB / 456.6 MB, free: 46.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.5417, allocations: 3.062 kB / 456.6 MB, free: 46.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.5417, allocations: 36.22 kB / 456.6 MB, free: 46.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.875e-06/0.5417, allocations: 3.688 kB / 456.6 MB, free: 46.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001286/0.543, allocations: 0.5674 MB / 457.2 MB, free: 46.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.635e-05/0.5431, allocations: 108.8 kB / 457.3 MB, free: 46.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005911/0.5437, allocations: 0.5414 MB / 457.9 MB, free: 45.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.5437, allocations: 34.52 kB / 457.9 MB, free: 45.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.544, allocations: 378.2 kB / 458.3 MB, free: 45.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.5441, allocations: 149.4 kB / 458.4 MB, free: 45.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.5442, allocations: 12.41 kB / 458.4 MB, free: 45.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5443, allocations: 382.6 kB / 458.8 MB, free: 45.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.5447, allocations: 188.8 kB / 459 MB, free: 45.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/0.5452, allocations: 400.4 kB / 459.4 MB, free: 45.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004509/0.5456, allocations: 238.5 kB / 459.6 MB, free: 45.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5457, allocations: 2.969 kB / 459.6 MB, free: 45.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001077/0.5467, allocations: 0.6612 MB / 460.3 MB, free: 44.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.5469, allocations: 294.9 kB / 460.6 MB, free: 44.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.5469, allocations: 9.844 kB / 460.6 MB, free: 44.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.547, allocations: 11.31 kB / 460.6 MB, free: 44.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.5475, allocations: 147.6 kB / 460.7 MB, free: 44.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.036e-05/0.5475, allocations: 14.44 kB / 460.7 MB, free: 44.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.5478, allocations: 75.89 kB / 460.8 MB, free: 44.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.5479, allocations: 32.2 kB / 460.8 MB, free: 44.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/0.5479, allocations: 2.531 kB / 460.8 MB, free: 44.6 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008387/0.5488, allocations: 0.5371 MB / 461.4 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.5488, allocations: 9.172 kB / 461.4 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.5488, allocations: 15.14 kB / 461.4 MB, free: 44.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.5492, allocations: 142.8 kB / 461.5 MB, free: 44.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.5492, allocations: 15.89 kB / 461.6 MB, free: 44.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.5495, allocations: 60.69 kB / 461.6 MB, free: 44.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/0.5496, allocations: 29.56 kB / 461.6 MB, free: 44.5 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000297/0.5499, allocations: 271.7 kB / 461.9 MB, free: 44.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.55, allocations: 71.44 kB / 462 MB, free: 44.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/0.5501, allocations: 75.39 kB / 462.1 MB, free: 44.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.5502, allocations: 7.25 kB / 462.1 MB, free: 44.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.5502, allocations: 0 / 462.1 MB, free: 44.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.5502, allocations: 3.328 kB / 462.1 MB, free: 44.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007505/0.5509, allocations: 0.5744 MB / 462.6 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.551, allocations: 0 / 462.6 MB, free: 44.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004191/0.5514, allocations: 94.7 kB / 462.7 MB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-06/0.5514, allocations: 6.672 kB / 462.7 MB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.5514, allocations: 12.16 kB / 462.8 MB, free: 44.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.5515, allocations: 2.812 kB / 462.8 MB, free: 44.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5515, allocations: 5.25 kB / 462.8 MB, free: 44.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.5529, allocations: 0.8043 MB / 463.6 MB, free: 43.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.5531, allocations: 171.5 kB / 463.7 MB, free: 43.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.862e-05/0.5532, allocations: 16.08 kB / 463.7 MB, free: 43.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.5535, allocations: 37.31 kB / 463.8 MB, free: 43.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.003e-05/0.5536, allocations: 26.64 kB / 463.8 MB, free: 43.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.5536, allocations: 14.45 kB / 463.8 MB, free: 43.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004771/0.5541, allocations: 368.7 kB / 464.2 MB, free: 43.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5541, allocations: 0 / 464.2 MB, free: 43.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009491/0.555, allocations: 244.8 kB / 464.4 MB, free: 43.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001245/0.5552, allocations: 111 kB / 464.5 MB, free: 43.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.5564, allocations: 0.7453 MB / 465.3 MB, free: 43.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.5564, allocations: 3.656 kB / 465.3 MB, free: 43.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003095/0.5568, allocations: 198.1 kB / 465.5 MB, free: 43.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000883/0.5576, allocations: 166.3 kB / 465.6 MB, free: 43.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.5599, allocations: 1.684 MB / 467.3 MB, free: 42.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.5602, allocations: 0.912 MB / 468.2 MB, free: 41.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003582/0.5606, allocations: 74.8 kB / 468.3 MB, free: 41.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.5607, allocations: 41.59 kB / 468.3 MB, free: 41.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.452e-06/0.5607, allocations: 0 / 468.3 MB, free: 41.66 MB / 382.1 MB Notification: Performance of Templates: time 0.01005/0.5708, allocations: 5.743 MB / 474.1 MB, free: 41.27 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches