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.002343/0.002344, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.938/1.938, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.00115/0.00115, allocations: 88.47 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5069/0.5069, allocations: 43.55 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004983/0.0004983, allocations: 12 kB / 431.4 MB, free: 5.969 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1239, allocations: 58.85 MB / 490.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4728/0.5968, allocations: 94.43 MB / 0.5709 GB, free: 8.137 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.5971, allocations: 67.97 kB / 0.571 GB, free: 8.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06696/0.6641, allocations: 14.41 MB / 0.5851 GB, free: 9.688 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6641, allocations: 224 / 0.5851 GB, free: 9.688 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.89e-05/0.6642, allocations: 23.94 kB / 0.5851 GB, free: 9.664 MB / 410.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.002965/0.6672, allocations: 0.9763 MB / 0.5861 GB, free: 8.641 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.6673, allocations: 16.03 kB / 0.5861 GB, free: 8.625 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002995/0.6676, allocations: 86.97 kB / 0.5861 GB, free: 8.539 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.6691, allocations: 0.5115 MB / 0.5866 GB, free: 7.984 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.414e-05/0.6692, allocations: 45.31 kB / 0.5867 GB, free: 7.941 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.6694, allocations: 63.91 kB / 0.5868 GB, free: 7.879 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.6712, allocations: 0.6086 MB / 0.5873 GB, free: 7.215 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.6713, allocations: 11.94 kB / 0.5874 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.359e-05/0.6714, allocations: 20 kB / 0.5874 GB, free: 7.184 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.6714, allocations: 16.34 kB / 0.5874 GB, free: 7.168 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.6729, allocations: 405.3 kB / 0.5878 GB, free: 6.777 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006729/0.6797, allocations: 3.019 MB / 0.5907 GB, free: 3.621 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/0.6824, allocations: 481.7 kB / 0.5912 GB, free: 3.129 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.6826, allocations: 8 kB / 0.5912 GB, free: 3.121 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.111e-05/0.6827, allocations: 39.05 kB / 0.5912 GB, free: 3.074 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 5.791e-06/0.6827, allocations: 0 / 0.5912 GB, free: 3.074 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.003843/0.6866, allocations: 0.5793 MB / 0.5918 GB, free: 2.484 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.6867, allocations: 106.8 kB / 0.5919 GB, free: 2.355 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.6884, allocations: 487.4 kB / 0.5924 GB, free: 1.875 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000175/0.6886, allocations: 41.64 kB / 0.5924 GB, free: 1.828 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/0.6891, allocations: 394.7 kB / 0.5928 GB, free: 1.438 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.6895, allocations: 157.7 kB / 0.5929 GB, free: 1.281 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.682e-05/0.6895, allocations: 16 kB / 0.5929 GB, free: 1.266 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.6898, allocations: 335.8 kB / 0.5933 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.6909, allocations: 185.2 kB / 0.5934 GB, free: 0.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.6924, allocations: 404.8 kB / 0.5938 GB, free: 264 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.694, allocations: 235.9 kB / 0.5941 GB, free: 28 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.694, allocations: 0 / 0.5941 GB, free: 28 kB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00358/0.6976, allocations: 0.6266 MB / 0.5947 GB, free: 15.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001449/0.6991, allocations: 2.612 MB / 0.5972 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.209e-05/0.6992, allocations: 11.98 kB / 0.5972 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.465e-05/0.6993, allocations: 15.94 kB / 0.5972 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.7009, allocations: 147.7 kB / 0.5974 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-05/0.701, allocations: 15.94 kB / 0.5974 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.7022, allocations: 75.5 kB / 0.5975 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.7023, allocations: 24 kB / 0.5975 GB, free: 12.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.7024, allocations: 6.812 kB / 0.5975 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002547/0.7049, allocations: 0.5499 MB / 0.598 GB, free: 11.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.705, allocations: 8.688 kB / 0.598 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.705, allocations: 12 kB / 0.5981 GB, free: 11.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.7065, allocations: 135.8 kB / 0.5982 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.693e-05/0.7065, allocations: 19.89 kB / 0.5982 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000744/0.7073, allocations: 63.52 kB / 0.5983 GB, free: 11.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.195e-05/0.7074, allocations: 28 kB / 0.5983 GB, free: 11.48 MB / 426.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.0006817/0.7081, allocations: 280.9 kB / 0.5986 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003151/0.7084, allocations: 63.16 kB / 0.5986 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.7087, allocations: 74.16 kB / 0.5987 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.7088, allocations: 4 kB / 0.5987 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.7088, allocations: 3.953 kB / 0.5987 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.7088, allocations: 0 / 0.5987 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.7106, allocations: 0.5791 MB / 0.5993 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.445e-06/0.7107, allocations: 0 / 0.5993 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001505/0.7122, allocations: 87.89 kB / 0.5993 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-05/0.7123, allocations: 7.984 kB / 0.5994 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001259/0.7124, allocations: 19.92 kB / 0.5994 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.323e-06/0.7124, allocations: 0 / 0.5994 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.7125, allocations: 0 / 0.5994 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.7152, allocations: 0.8331 MB / 0.6002 GB, free: 9.445 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.7156, allocations: 176.2 kB / 0.6004 GB, free: 9.254 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001308/0.7158, allocations: 12 kB / 0.6004 GB, free: 9.242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006793/0.7165, allocations: 39.91 kB / 0.6004 GB, free: 9.203 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.7166, allocations: 35.91 kB / 0.6004 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-05/0.7167, allocations: 8 kB / 0.6004 GB, free: 9.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007195/0.7174, allocations: 375.1 kB / 0.6008 GB, free: 8.797 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7174, allocations: 0 / 0.6008 GB, free: 8.797 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001314/0.7188, allocations: 247.2 kB / 0.601 GB, free: 8.555 MB / 426.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.0002131/0.719, allocations: 111.2 kB / 0.6011 GB, free: 8.434 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.7216, allocations: 0.7539 MB / 0.6019 GB, free: 7.684 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.7217, allocations: 0 / 0.6019 GB, free: 7.684 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.7224, allocations: 199.8 kB / 0.6021 GB, free: 7.488 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.7239, allocations: 157.2 kB / 0.6022 GB, free: 7.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003838/0.7278, allocations: 1.722 MB / 0.6039 GB, free: 5.586 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/0.7285, allocations: 0.9269 MB / 0.6048 GB, free: 4.633 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/0.7289, allocations: 51.44 kB / 0.6049 GB, free: 4.582 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/0.7289, allocations: 0 / 0.6049 GB, free: 4.582 MB / 426.7 MB Notification: Performance of Templates: time 0.01889/0.7478, allocations: 7.559 MB / 0.6122 GB, free: 13.05 MB / 442.7 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