Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001439/0.001439, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.082/2.082, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001086, allocations: 89.08 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3025/0.3025, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/2.006e-05, allocations: 224 / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4084, allocations: 58.87 MB / 477.1 MB, free: 5.238 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1823/0.5908, allocations: 93.66 MB / 0.5574 GB, free: 5.613 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5912, allocations: 67.97 kB / 0.5574 GB, free: 5.547 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06781/0.659, allocations: 14.27 MB / 0.5714 GB, free: 7.25 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.6591, allocations: 224 / 0.5714 GB, free: 7.25 MB / 411.1 MB Notification: Performance of Transformations before backend: time 9.122e-05/0.6592, allocations: 20 kB / 0.5714 GB, free: 7.23 MB / 411.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.002587/0.6618, allocations: 0.8765 MB / 0.5722 GB, free: 6.305 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.6618, allocations: 8.031 kB / 0.5723 GB, free: 6.297 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003723/0.6622, allocations: 94.92 kB / 0.5723 GB, free: 6.203 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/0.6639, allocations: 0.5193 MB / 0.5728 GB, free: 5.645 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.664, allocations: 16 kB / 0.5729 GB, free: 5.629 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.6642, allocations: 43.91 kB / 0.5729 GB, free: 5.586 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009283/0.6651, allocations: 286.6 kB / 0.5732 GB, free: 5.305 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.6664, allocations: 500 kB / 0.5737 GB, free: 4.758 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.6664, allocations: 4 kB / 0.5737 GB, free: 4.754 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.395e-05/0.6665, allocations: 0 / 0.5737 GB, free: 4.754 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.607e-05/0.6665, allocations: 19.95 kB / 0.5737 GB, free: 4.734 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006749/0.6733, allocations: 2.93 MB / 0.5765 GB, free: 1.672 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.6743, allocations: 345.8 kB / 0.5769 GB, free: 1.312 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003461/0.6747, allocations: 129.7 kB / 0.577 GB, free: 1.18 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.385e-05/0.6748, allocations: 4.531 kB / 0.577 GB, free: 1.176 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.6748, allocations: 38.64 kB / 0.577 GB, free: 1.129 MB / 411.1 MB Notification: Performance of pre-optimization done (n=39): time 3.376e-06/0.6749, allocations: 8 kB / 0.577 GB, free: 1.121 MB / 411.1 MB Notification: Performance of matching and sorting (n=39): time 0.001075/0.6759, allocations: 333.4 kB / 0.5774 GB, free: 0.7852 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/0.676, allocations: 110.8 kB / 0.5775 GB, free: 0.6523 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008425/0.6769, allocations: 443.4 kB / 0.5779 GB, free: 220 kB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 8.886e-05/0.677, allocations: 29.7 kB / 0.5779 GB, free: 184 kB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000374/0.6774, allocations: 398.5 kB / 0.5783 GB, free: 15.79 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.6776, allocations: 141.8 kB / 0.5784 GB, free: 15.64 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.6776, allocations: 0 / 0.5784 GB, free: 15.64 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.6778, allocations: 342.8 kB / 0.5788 GB, free: 15.3 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003907/0.6782, allocations: 129.6 kB / 0.5789 GB, free: 15.18 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006023/0.6788, allocations: 349.5 kB / 0.5792 GB, free: 14.74 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000497/0.6794, allocations: 179.6 kB / 0.5794 GB, free: 14.56 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.6794, allocations: 4 kB / 0.5794 GB, free: 14.56 MB / 427.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001329/0.6807, allocations: 481.1 kB / 0.5799 GB, free: 14.08 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001223/0.682, allocations: 2.622 MB / 0.5824 GB, free: 11.26 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/0.682, allocations: 4 kB / 0.5824 GB, free: 11.25 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.135e-05/0.6821, allocations: 12 kB / 0.5824 GB, free: 11.24 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.6833, allocations: 143.8 kB / 0.5826 GB, free: 11.1 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-05/0.6833, allocations: 15.92 kB / 0.5826 GB, free: 11.09 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008612/0.6842, allocations: 67.45 kB / 0.5826 GB, free: 11.02 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.724e-05/0.6843, allocations: 28 kB / 0.5827 GB, free: 10.99 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.6843, allocations: 6.969 kB / 0.5827 GB, free: 10.99 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001184/0.6855, allocations: 424 kB / 0.5831 GB, free: 10.58 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.6855, allocations: 7.938 kB / 0.5831 GB, free: 10.57 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.6856, allocations: 12 kB / 0.5831 GB, free: 10.56 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009931/0.6866, allocations: 135.8 kB / 0.5832 GB, free: 10.43 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.828e-05/0.6866, allocations: 15.94 kB / 0.5832 GB, free: 10.41 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.6871, allocations: 47.58 kB / 0.5833 GB, free: 10.36 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.256e-05/0.6872, allocations: 31.95 kB / 0.5833 GB, free: 10.33 MB / 427.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 () * 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.0002468/0.6875, allocations: 128.7 kB / 0.5834 GB, free: 10.2 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002537/0.6877, allocations: 67.16 kB / 0.5835 GB, free: 10.13 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002178/0.688, allocations: 66.59 kB / 0.5836 GB, free: 10.06 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.688, allocations: 4 kB / 0.5836 GB, free: 10.06 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/0.688, allocations: 4 kB / 0.5836 GB, free: 10.05 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.465e-06/0.688, allocations: 0 / 0.5836 GB, free: 10.05 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.6892, allocations: 0.5093 MB / 0.5841 GB, free: 9.508 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.6892, allocations: 3.984 kB / 0.5841 GB, free: 9.504 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.6903, allocations: 95.88 kB / 0.5842 GB, free: 9.41 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/0.6903, allocations: 7.938 kB / 0.5842 GB, free: 9.402 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.793e-05/0.6904, allocations: 0 / 0.5842 GB, free: 9.402 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.625e-06/0.6904, allocations: 4 kB / 0.5842 GB, free: 9.398 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.6904, allocations: 0 / 0.5842 GB, free: 9.398 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.6919, allocations: 0.6893 MB / 0.5849 GB, free: 8.684 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000365/0.6923, allocations: 164.4 kB / 0.585 GB, free: 8.504 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.6924, allocations: 0 / 0.585 GB, free: 8.504 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/0.6931, allocations: 27.97 kB / 0.585 GB, free: 8.477 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.6933, allocations: 35.89 kB / 0.5851 GB, free: 8.441 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.6933, allocations: 15.94 kB / 0.5851 GB, free: 8.426 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0006219/0.694, allocations: 335.2 kB / 0.5854 GB, free: 8.105 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.694, allocations: 0 / 0.5854 GB, free: 8.105 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.00137/0.6954, allocations: 223.1 kB / 0.5856 GB, free: 7.887 MB / 427.1 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 () * 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.0002274/0.6956, allocations: 111.1 kB / 0.5857 GB, free: 7.77 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.6973, allocations: 0.5868 MB / 0.5863 GB, free: 7.184 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6973, allocations: 0 / 0.5863 GB, free: 7.184 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004028/0.6977, allocations: 152 kB / 0.5864 GB, free: 7.035 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.6992, allocations: 157.8 kB / 0.5866 GB, free: 6.883 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.7022, allocations: 1.076 MB / 0.5876 GB, free: 5.773 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006865/0.7029, allocations: 0.9267 MB / 0.5886 GB, free: 4.816 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/0.7033, allocations: 43.44 kB / 0.5886 GB, free: 4.773 MB / 427.1 MB Notification: Performance of SimCode: time 1.192e-06/0.7033, allocations: 4 kB / 0.5886 GB, free: 4.77 MB / 427.1 MB Notification: Performance of Templates: time 0.01993/0.7232, allocations: 7.467 MB / 0.5959 GB, free: 13.32 MB / 443.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches