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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001864/0.001864, allocations: 183.7 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.438/1.438, allocations: 205.4 MB / 221.9 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008107/0.0008106, allocations: 94.88 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2028/0.2028, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.0003009, allocations: 12 kB / 431.4 MB, free: 19.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1166, allocations: 58.86 MB / 490.2 MB, free: 8.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3815/0.4982, allocations: 94.43 MB / 0.571 GB, free: 5.496 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.4985, allocations: 69.22 kB / 0.571 GB, free: 5.461 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04049/0.539, allocations: 14.39 MB / 0.5851 GB, free: 9.402 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5391, allocations: 0 / 0.5851 GB, free: 9.402 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.292e-05/0.5391, allocations: 24.59 kB / 0.5851 GB, free: 9.379 MB / 394.7 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.001706/0.5409, allocations: 0.9747 MB / 0.5861 GB, free: 8.402 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.5409, allocations: 12.03 kB / 0.5861 GB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000161/0.5411, allocations: 90.92 kB / 0.5862 GB, free: 8.301 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008787/0.542, allocations: 0.5165 MB / 0.5867 GB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.542, allocations: 44.69 kB / 0.5867 GB, free: 7.789 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.335e-05/0.5421, allocations: 66.77 kB / 0.5868 GB, free: 7.742 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009704/0.5431, allocations: 0.6144 MB / 0.5874 GB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.5431, allocations: 3.938 kB / 0.5874 GB, free: 7.223 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/0.5432, allocations: 27.38 kB / 0.5874 GB, free: 7.215 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.5432, allocations: 12 kB / 0.5874 GB, free: 7.203 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.544, allocations: 404.6 kB / 0.5878 GB, free: 6.922 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00393/0.5479, allocations: 3.033 MB / 0.5908 GB, free: 4.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.549, allocations: 479 kB / 0.5912 GB, free: 3.793 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.5491, allocations: 8 kB / 0.5912 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.5491, allocations: 42.48 kB / 0.5913 GB, free: 3.738 MB / 394.7 MB Notification: Performance of pre-optimization done (n=39): time 2.966e-06/0.5491, allocations: 0 / 0.5913 GB, free: 3.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.001369/0.5505, allocations: 0.5708 MB / 0.5918 GB, free: 3.293 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7e-05/0.5506, allocations: 110.8 kB / 0.5919 GB, free: 3.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/0.5511, allocations: 490.9 kB / 0.5924 GB, free: 2.773 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.999e-05/0.5512, allocations: 36.83 kB / 0.5924 GB, free: 2.738 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.5514, allocations: 367.8 kB / 0.5928 GB, free: 2.488 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.5515, allocations: 156.5 kB / 0.5929 GB, free: 2.355 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.488e-05/0.5516, allocations: 18.81 kB / 0.5929 GB, free: 2.348 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5517, allocations: 377.7 kB / 0.5933 GB, free: 2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.5521, allocations: 185.5 kB / 0.5935 GB, free: 1.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005331/0.5527, allocations: 412.3 kB / 0.5939 GB, free: 1.449 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/0.5531, allocations: 229.2 kB / 0.5941 GB, free: 1.301 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5532, allocations: 0 / 0.5941 GB, free: 1.301 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001166/0.5543, allocations: 0.6667 MB / 0.5947 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001006/0.5553, allocations: 2.623 MB / 0.5973 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.5554, allocations: 8 kB / 0.5973 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.5554, allocations: 12 kB / 0.5973 GB, free: 13.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005604/0.556, allocations: 151.5 kB / 0.5975 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.852e-05/0.556, allocations: 15.92 kB / 0.5975 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004293/0.5564, allocations: 74.3 kB / 0.5976 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.5565, allocations: 27.5 kB / 0.5976 GB, free: 13.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.346e-06/0.5565, allocations: 4 kB / 0.5976 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009636/0.5575, allocations: 0.5444 MB / 0.5981 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.5575, allocations: 8.688 kB / 0.5981 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.5575, allocations: 12 kB / 0.5981 GB, free: 13.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004791/0.558, allocations: 142 kB / 0.5983 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.558, allocations: 19.89 kB / 0.5983 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003662/0.5584, allocations: 58.67 kB / 0.5983 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.5584, allocations: 27.25 kB / 0.5984 GB, free: 13.11 MB / 410.7 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.0003451/0.5588, allocations: 275.7 kB / 0.5986 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.5589, allocations: 67.16 kB / 0.5987 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.5591, allocations: 77.97 kB / 0.5988 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.5591, allocations: 4 kB / 0.5988 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.5591, allocations: 7.953 kB / 0.5988 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.5591, allocations: 0 / 0.5988 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007618/0.5599, allocations: 0.5715 MB / 0.5993 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.5599, allocations: 0 / 0.5993 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005058/0.5604, allocations: 95.02 kB / 0.5994 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.5604, allocations: 0 / 0.5994 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.412e-05/0.5604, allocations: 18.8 kB / 0.5994 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.5605, allocations: 4 kB / 0.5995 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.5605, allocations: 0 / 0.5995 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.5617, allocations: 0.8298 MB / 0.6003 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.5619, allocations: 172.6 kB / 0.6004 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.02e-05/0.562, allocations: 17.56 kB / 0.6004 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003826/0.5624, allocations: 41.59 kB / 0.6005 GB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.5625, allocations: 31.16 kB / 0.6005 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.5625, allocations: 11.88 kB / 0.6005 GB, free: 11.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000404/0.563, allocations: 375.8 kB / 0.6009 GB, free: 10.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.563, allocations: 4 kB / 0.6009 GB, free: 10.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007953/0.5638, allocations: 243.8 kB / 0.6011 GB, free: 10.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (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,Wsec.y,Vsec.y,Asec.y) * 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.0001556/0.5639, allocations: 114.8 kB / 0.6012 GB, free: 10.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.5654, allocations: 0.7535 MB / 0.602 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.5654, allocations: 0 / 0.602 GB, free: 10.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.5658, allocations: 201.1 kB / 0.6022 GB, free: 9.887 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008587/0.5666, allocations: 159.6 kB / 0.6023 GB, free: 9.773 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.5691, allocations: 1.685 MB / 0.604 GB, free: 8.156 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00047/0.5695, allocations: 0.9269 MB / 0.6049 GB, free: 7.203 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004041/0.57, allocations: 76.81 kB / 0.6049 GB, free: 7.125 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.5701, allocations: 43.31 kB / 0.605 GB, free: 7.086 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5701, allocations: 0 / 0.605 GB, free: 7.086 MB / 410.7 MB Notification: Performance of Templates: time 0.0119/0.582, allocations: 5.873 MB / 0.6107 GB, free: 1.25 MB / 410.7 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