Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001114, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007932/0.0007932, allocations: 101 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1742/0.1742, allocations: 45.15 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.177e-05/1.178e-05, allocations: 4 kB / 453.2 MB, free: 75.81 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 63.25 MB / 0.5044 GB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3729/0.4837, allocations: 96.03 MB / 0.5981 GB, free: 6.652 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001804/0.4839, allocations: 68.47 kB / 0.5982 GB, free: 6.621 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03618/0.5201, allocations: 14.42 MB / 0.6123 GB, free: 10.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5202, allocations: 0 / 0.6123 GB, free: 10.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.835e-05/0.5202, allocations: 20 kB / 0.6123 GB, free: 10.7 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.001302/0.5216, allocations: 0.8808 MB / 0.6132 GB, free: 9.812 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.5216, allocations: 12.03 kB / 0.6132 GB, free: 9.801 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.5218, allocations: 106.9 kB / 0.6133 GB, free: 9.695 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007863/0.5226, allocations: 0.5045 MB / 0.6138 GB, free: 9.219 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.5227, allocations: 16 kB / 0.6138 GB, free: 9.203 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.079e-05/0.5228, allocations: 42.28 kB / 0.6138 GB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005558/0.5233, allocations: 287.4 kB / 0.6141 GB, free: 8.992 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006946/0.524, allocations: 0.4922 MB / 0.6146 GB, free: 8.551 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.5241, allocations: 0 / 0.6146 GB, free: 8.551 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.212e-05/0.5241, allocations: 11.95 kB / 0.6146 GB, free: 8.539 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.5241, allocations: 12 kB / 0.6146 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.5275, allocations: 2.931 MB / 0.6175 GB, free: 5.852 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005053/0.528, allocations: 341.1 kB / 0.6178 GB, free: 5.617 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.5282, allocations: 128.7 kB / 0.6179 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.5282, allocations: 11.97 kB / 0.6179 GB, free: 5.523 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.5283, allocations: 42.25 kB / 0.618 GB, free: 5.477 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 1.843e-06/0.5283, allocations: 0 / 0.618 GB, free: 5.477 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0005648/0.5288, allocations: 339.8 kB / 0.6183 GB, free: 5.215 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.5289, allocations: 106.8 kB / 0.6184 GB, free: 5.086 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004327/0.5293, allocations: 446.2 kB / 0.6188 GB, free: 4.742 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.5294, allocations: 29.64 kB / 0.6188 GB, free: 4.707 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.5296, allocations: 371.8 kB / 0.6192 GB, free: 4.457 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.5297, allocations: 147.1 kB / 0.6193 GB, free: 4.332 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.5297, allocations: 8 kB / 0.6193 GB, free: 4.324 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5299, allocations: 374.1 kB / 0.6197 GB, free: 3.977 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.5301, allocations: 131.1 kB / 0.6198 GB, free: 3.902 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003088/0.5304, allocations: 339.5 kB / 0.6201 GB, free: 3.551 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.5306, allocations: 186.8 kB / 0.6203 GB, free: 3.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5307, allocations: 0 / 0.6203 GB, free: 3.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006986/0.5314, allocations: 0.5191 MB / 0.6208 GB, free: 3.016 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008889/0.5323, allocations: 2.617 MB / 0.6234 GB, free: 248 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.5323, allocations: 8 kB / 0.6234 GB, free: 240 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.453e-05/0.5323, allocations: 15.98 kB / 0.6234 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005698/0.5329, allocations: 143 kB / 0.6235 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.5329, allocations: 15.94 kB / 0.6236 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004094/0.5333, allocations: 59.5 kB / 0.6236 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.477e-05/0.5334, allocations: 31.23 kB / 0.6236 GB, free: 15.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/0.5334, allocations: 4 kB / 0.6237 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006061/0.534, allocations: 421.7 kB / 0.6241 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.5341, allocations: 12.03 kB / 0.6241 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.5341, allocations: 12 kB / 0.6241 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004648/0.5345, allocations: 134.7 kB / 0.6242 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.5346, allocations: 19.92 kB / 0.6242 GB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003373/0.5349, allocations: 47.53 kB / 0.6243 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.535, allocations: 31.62 kB / 0.6243 GB, free: 15.43 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 () * 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.0001433/0.5351, allocations: 124.8 kB / 0.6244 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.5352, allocations: 63.25 kB / 0.6245 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000158/0.5354, allocations: 63.92 kB / 0.6245 GB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.5354, allocations: 4 kB / 0.6245 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.5354, allocations: 0 / 0.6245 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.5354, allocations: 11.92 kB / 0.6246 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006725/0.5361, allocations: 0.5103 MB / 0.6251 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.5361, allocations: 3.984 kB / 0.6251 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.5366, allocations: 99.69 kB / 0.6252 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.5366, allocations: 0 / 0.6252 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.093e-05/0.5367, allocations: 4 kB / 0.6252 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.5367, allocations: 4 kB / 0.6252 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5367, allocations: 0 / 0.6252 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007229/0.5374, allocations: 0.6726 MB / 0.6258 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.5376, allocations: 172.6 kB / 0.626 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.032e-05/0.5377, allocations: 4 kB / 0.626 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000349/0.538, allocations: 27.97 kB / 0.626 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.5381, allocations: 31.89 kB / 0.626 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.5382, allocations: 11.88 kB / 0.6261 GB, free: 13.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00032/0.5385, allocations: 339.2 kB / 0.6264 GB, free: 13.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5385, allocations: 0 / 0.6264 GB, free: 13.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007623/0.5393, allocations: 227.1 kB / 0.6266 GB, free: 13.41 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 () * 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.000156/0.5394, allocations: 104.3 kB / 0.6267 GB, free: 13.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008583/0.5403, allocations: 0.6079 MB / 0.6273 GB, free: 12.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5403, allocations: 3.938 kB / 0.6273 GB, free: 12.88 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.5405, allocations: 156.1 kB / 0.6274 GB, free: 12.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008239/0.5413, allocations: 159 kB / 0.6276 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.543, allocations: 1.033 MB / 0.6286 GB, free: 11.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.5434, allocations: 0.9318 MB / 0.6295 GB, free: 10.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004694/0.5439, allocations: 111.2 kB / 0.6296 GB, free: 10.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.544, allocations: 43.38 kB / 0.6297 GB, free: 10.56 MB / 426.7 MB Notification: Performance of SimCode: time 4.21e-07/0.544, allocations: 0 / 0.6297 GB, free: 10.56 MB / 426.7 MB Notification: Performance of Templates: time 0.01084/0.5548, allocations: 6.432 MB / 0.6359 GB, free: 4.195 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches