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.001079/0.001079, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.3 MB / 213.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000881/0.0008809, allocations: 86.3 kB / 261.7 MB, free: 1.625 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.1901/0.1901, allocations: 43.49 MB / 353.2 MB, free: 284 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.633e-05/1.635e-05, allocations: 4 kB / 418.3 MB, free: 28.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 58.85 MB / 477.1 MB, free: 1.676 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3727/0.4782, allocations: 93.68 MB / 0.5574 GB, free: 1.965 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.4784, allocations: 73.16 kB / 0.5575 GB, free: 1.934 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03773/0.5161, allocations: 14.26 MB / 0.5714 GB, free: 6.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.5162, allocations: 4 kB / 0.5714 GB, free: 6.176 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.22e-05/0.5163, allocations: 27.92 kB / 0.5714 GB, free: 6.148 MB / 378.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.001762/0.518, allocations: 0.8736 MB / 0.5723 GB, free: 5.273 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.5181, allocations: 8.031 kB / 0.5723 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.5184, allocations: 94.91 kB / 0.5724 GB, free: 5.172 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009496/0.5193, allocations: 0.508 MB / 0.5729 GB, free: 4.695 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.5194, allocations: 20 kB / 0.5729 GB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.073e-05/0.5195, allocations: 35.91 kB / 0.5729 GB, free: 4.641 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005343/0.52, allocations: 293.5 kB / 0.5732 GB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007667/0.5208, allocations: 0.4914 MB / 0.5737 GB, free: 4.027 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.5208, allocations: 4 kB / 0.5737 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.5209, allocations: 0 / 0.5737 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.5209, allocations: 19.95 kB / 0.5737 GB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003899/0.5248, allocations: 2.932 MB / 0.5766 GB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005462/0.5254, allocations: 339.8 kB / 0.5769 GB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.5256, allocations: 127.6 kB / 0.577 GB, free: 1.008 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.5256, allocations: 16.52 kB / 0.577 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.5257, allocations: 37.91 kB / 0.5771 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 2.274e-06/0.5257, allocations: 0 / 0.5771 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.0005718/0.5263, allocations: 333.5 kB / 0.5774 GB, free: 0.6875 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.5263, allocations: 109.9 kB / 0.5775 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004928/0.5268, allocations: 447.2 kB / 0.5779 GB, free: 220 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.747e-05/0.5269, allocations: 25.7 kB / 0.5779 GB, free: 188 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.5271, allocations: 375.3 kB / 0.5783 GB, free: 15.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.5273, allocations: 145.4 kB / 0.5784 GB, free: 15.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.001e-05/0.5273, allocations: 0 / 0.5784 GB, free: 15.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.5275, allocations: 376.8 kB / 0.5788 GB, free: 15.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002226/0.5277, allocations: 132.3 kB / 0.5789 GB, free: 15.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.5281, allocations: 351 kB / 0.5793 GB, free: 15.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.5284, allocations: 186.6 kB / 0.5794 GB, free: 14.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.5284, allocations: 0.8438 kB / 0.5794 GB, free: 14.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0008147/0.5292, allocations: 0.5174 MB / 0.5799 GB, free: 14.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001145/0.5304, allocations: 2.613 MB / 0.5825 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.5304, allocations: 8 kB / 0.5825 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.5304, allocations: 12 kB / 0.5825 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.531, allocations: 147.3 kB / 0.5827 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.531, allocations: 15.94 kB / 0.5827 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/0.5315, allocations: 63.44 kB / 0.5827 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.481e-05/0.5315, allocations: 23.88 kB / 0.5827 GB, free: 11.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.5316, allocations: 15.38 kB / 0.5828 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006667/0.5322, allocations: 417.4 kB / 0.5832 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.5322, allocations: 8 kB / 0.5832 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.5323, allocations: 11.94 kB / 0.5832 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.5328, allocations: 138.9 kB / 0.5833 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.5328, allocations: 19.92 kB / 0.5833 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.5332, allocations: 55.91 kB / 0.5834 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.5332, allocations: 27.06 kB / 0.5834 GB, free: 10.9 MB / 394.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 () * 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.0001343/0.5334, allocations: 120.2 kB / 0.5835 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.5335, allocations: 71.09 kB / 0.5836 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.5336, allocations: 65.17 kB / 0.5837 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.5336, allocations: 4 kB / 0.5837 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5336, allocations: 0 / 0.5837 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.5337, allocations: 11.98 kB / 0.5837 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007147/0.5344, allocations: 0.5062 MB / 0.5842 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.5344, allocations: 0 / 0.5842 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.5349, allocations: 91.45 kB / 0.5843 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.5349, allocations: 0 / 0.5843 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.535, allocations: 11.11 kB / 0.5843 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.535, allocations: 4 kB / 0.5843 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.535, allocations: 0 / 0.5843 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008876/0.5359, allocations: 0.6806 MB / 0.5849 GB, free: 9.578 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.5361, allocations: 166.1 kB / 0.5851 GB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/0.5362, allocations: 7.875 kB / 0.5851 GB, free: 9.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003697/0.5366, allocations: 35.91 kB / 0.5851 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-05/0.5367, allocations: 27.2 kB / 0.5852 GB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.5367, allocations: 8 kB / 0.5852 GB, free: 9.344 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003908/0.5371, allocations: 340.6 kB / 0.5855 GB, free: 9.098 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5371, allocations: 0 / 0.5855 GB, free: 9.098 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007927/0.5379, allocations: 223.1 kB / 0.5857 GB, free: 8.879 MB / 394.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 () * 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.0001709/0.5381, allocations: 115.1 kB / 0.5858 GB, free: 8.758 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009634/0.5391, allocations: 0.6005 MB / 0.5864 GB, free: 8.344 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5391, allocations: 0 / 0.5864 GB, free: 8.344 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.5393, allocations: 148.4 kB / 0.5865 GB, free: 8.246 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008467/0.5402, allocations: 163.4 kB / 0.5867 GB, free: 8.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.5418, allocations: 1.052 MB / 0.5877 GB, free: 7.129 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.5424, allocations: 0.9317 MB / 0.5886 GB, free: 6.168 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005152/0.5429, allocations: 115.1 kB / 0.5887 GB, free: 6.055 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.543, allocations: 35.44 kB / 0.5888 GB, free: 6.02 MB / 394.7 MB Notification: Performance of SimCode: time 3.61e-07/0.543, allocations: 4 kB / 0.5888 GB, free: 6.016 MB / 394.7 MB Notification: Performance of Templates: time 0.01162/0.5546, allocations: 6.432 MB / 0.5951 GB, free: 15.62 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