Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008719/0.0008719, allocations: 183 kB / 18.09 MB, free: 3.629 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.185/1.185, allocations: 223.3 MB / 242.1 MB, free: 9.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007632/0.0007632, allocations: 89.12 kB / 293.3 MB, free: 10.52 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2642/0.2642, allocations: 44.13 MB / 388.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003376, allocations: 16 kB / 461.1 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2458, allocations: 61.87 MB / 0.5107 GB, free: 37.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09687/0.3427, allocations: 95.74 MB / 0.6042 GB, free: 15.31 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001793/0.3429, allocations: 75.95 kB / 0.6043 GB, free: 15.24 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03524/0.3781, allocations: 14.45 MB / 0.6184 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3782, allocations: 0 / 0.6184 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.632e-05/0.3782, allocations: 23.98 kB / 0.6184 GB, free: 0.7344 MB / 426.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.001526/0.3798, allocations: 0.9619 MB / 0.6194 GB, free: 15.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3798, allocations: 12.03 kB / 0.6194 GB, free: 15.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.3799, allocations: 87.91 kB / 0.6195 GB, free: 15.62 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007557/0.3807, allocations: 0.5279 MB / 0.62 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.063e-05/0.3808, allocations: 53.67 kB / 0.62 GB, free: 15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.978e-05/0.3809, allocations: 60.28 kB / 0.6201 GB, free: 14.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008743/0.3817, allocations: 0.6199 MB / 0.6207 GB, free: 14.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.3818, allocations: 192 / 0.6207 GB, free: 14.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.794e-05/0.3818, allocations: 27.94 kB / 0.6207 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.3818, allocations: 12 kB / 0.6207 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007008/0.3825, allocations: 403.8 kB / 0.6211 GB, free: 13.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.3858, allocations: 3.038 MB / 0.6241 GB, free: 10.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008419/0.3867, allocations: 461.8 kB / 0.6245 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003144/0.387, allocations: 182.4 kB / 0.6247 GB, free: 10 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.3871, allocations: 4 kB / 0.6247 GB, free: 9.996 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.3871, allocations: 50.52 kB / 0.6247 GB, free: 9.938 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 1.422e-06/0.3871, allocations: 0 / 0.6247 GB, free: 9.938 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001098/0.3882, allocations: 0.5676 MB / 0.6253 GB, free: 9.359 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.3883, allocations: 110.8 kB / 0.6254 GB, free: 9.227 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005273/0.3888, allocations: 0.547 MB / 0.6259 GB, free: 8.672 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.3888, allocations: 37.7 kB / 0.626 GB, free: 8.629 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.389, allocations: 364 kB / 0.6263 GB, free: 8.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.3892, allocations: 161.7 kB / 0.6265 GB, free: 8.109 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.3892, allocations: 12 kB / 0.6265 GB, free: 8.098 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3893, allocations: 378.7 kB / 0.6268 GB, free: 7.719 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.3897, allocations: 189.2 kB / 0.627 GB, free: 7.531 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.3901, allocations: 401.8 kB / 0.6274 GB, free: 7.047 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.391, allocations: 0.5926 MB / 0.628 GB, free: 6.363 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.391, allocations: 4 kB / 0.628 GB, free: 6.359 MB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001071/0.3921, allocations: 0.6638 MB / 0.6286 GB, free: 5.688 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.3922, allocations: 290.7 kB / 0.6289 GB, free: 5.309 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3922, allocations: 8 kB / 0.6289 GB, free: 5.301 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.3923, allocations: 19.88 kB / 0.6289 GB, free: 5.281 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/0.3927, allocations: 139.8 kB / 0.6291 GB, free: 5.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.3928, allocations: 15.98 kB / 0.6291 GB, free: 5.129 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.3931, allocations: 79.42 kB / 0.6292 GB, free: 5.051 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.3932, allocations: 24 kB / 0.6292 GB, free: 5.027 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.121e-06/0.3932, allocations: 4 kB / 0.6292 GB, free: 5.023 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008655/0.394, allocations: 0.5541 MB / 0.6297 GB, free: 4.469 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3941, allocations: 8 kB / 0.6297 GB, free: 4.461 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.3941, allocations: 8 kB / 0.6298 GB, free: 4.453 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.3945, allocations: 144.3 kB / 0.6299 GB, free: 4.312 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.3945, allocations: 19.98 kB / 0.6299 GB, free: 4.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.3949, allocations: 59.61 kB / 0.63 GB, free: 4.234 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.3949, allocations: 28 kB / 0.63 GB, free: 4.207 MB / 442.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.0002294/0.3951, allocations: 278.4 kB / 0.6303 GB, free: 3.926 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.822e-05/0.3952, allocations: 63.16 kB / 0.6303 GB, free: 3.863 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.3954, allocations: 74.17 kB / 0.6304 GB, free: 3.785 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3954, allocations: 7.984 kB / 0.6304 GB, free: 3.777 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3954, allocations: 0 / 0.6304 GB, free: 3.777 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3954, allocations: 0 / 0.6304 GB, free: 3.777 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.3961, allocations: 0.5866 MB / 0.631 GB, free: 3.141 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3961, allocations: 0 / 0.631 GB, free: 3.141 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004395/0.3965, allocations: 91.89 kB / 0.6311 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3965, allocations: 0 / 0.6311 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.3966, allocations: 19.98 kB / 0.6311 GB, free: 3.031 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3966, allocations: 7.938 kB / 0.6311 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3966, allocations: 0 / 0.6311 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.3977, allocations: 0.8006 MB / 0.6319 GB, free: 2.203 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.3979, allocations: 180.3 kB / 0.632 GB, free: 2.008 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.002e-05/0.3979, allocations: 8 kB / 0.632 GB, free: 2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/0.3983, allocations: 39.97 kB / 0.6321 GB, free: 1.961 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.3984, allocations: 27.95 kB / 0.6321 GB, free: 1.934 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.3984, allocations: 12 kB / 0.6321 GB, free: 1.922 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003459/0.3987, allocations: 371.1 kB / 0.6325 GB, free: 1.566 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3987, allocations: 0 / 0.6325 GB, free: 1.566 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006823/0.3994, allocations: 251.2 kB / 0.6327 GB, free: 1.32 MB / 442.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.0001196/0.3996, allocations: 115.2 kB / 0.6328 GB, free: 1.199 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.4008, allocations: 0.7531 MB / 0.6336 GB, free: 460 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4008, allocations: 7.938 kB / 0.6336 GB, free: 452 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.4012, allocations: 201 kB / 0.6338 GB, free: 252 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008575/0.402, allocations: 169.5 kB / 0.6339 GB, free: 88 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00192/0.404, allocations: 1.675 MB / 0.6356 GB, free: 14.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.4044, allocations: 0.9152 MB / 0.6365 GB, free: 13.44 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003511/0.4047, allocations: 76.8 kB / 0.6365 GB, free: 13.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.4049, allocations: 47.42 kB / 0.6366 GB, free: 13.32 MB / 458.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4049, allocations: 4 kB / 0.6366 GB, free: 13.31 MB / 458.7 MB Notification: Performance of Templates: time 0.01002/0.4149, allocations: 5.931 MB / 0.6424 GB, free: 7.441 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches