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.001286/0.001286, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009633/0.0009635, allocations: 107 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.317/0.317, allocations: 44.84 MB / 392.7 MB, free: 34.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 67.84 kB / 465.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3778, allocations: 62 MB / 0.5151 GB, free: 37.83 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004537/0.3824, allocations: 4.052 MB / 0.5191 GB, free: 34.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.3847, allocations: 1.239 MB / 0.5203 GB, free: 34.05 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005032/0.3852, allocations: 25.38 kB / 0.5203 GB, free: 34.05 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003159/0.3856, allocations: 81.59 kB / 0.5204 GB, free: 34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005685/0.3862, allocations: 138 kB / 0.5205 GB, free: 33.9 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007519/0.387, allocations: 351.7 kB / 0.5209 GB, free: 33.7 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006864/0.3877, allocations: 0.8029 MB / 0.5217 GB, free: 33.31 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004165/0.3881, allocations: 272.6 kB / 0.5219 GB, free: 33.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.3885, allocations: 291.6 kB / 0.5222 GB, free: 33.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.3888, allocations: 302.7 kB / 0.5225 GB, free: 32.86 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.384e-05/0.3889, allocations: 36.44 kB / 0.5225 GB, free: 32.86 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.923e-05/0.389, allocations: 45.09 kB / 0.5226 GB, free: 32.85 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.506e-05/0.389, allocations: 134.2 kB / 0.5227 GB, free: 32.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.3892, allocations: 318.1 kB / 0.523 GB, free: 32.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004613/0.3897, allocations: 0.7242 MB / 0.5237 GB, free: 32.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.3897, allocations: 0 / 0.5237 GB, free: 32.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3897, allocations: 0 / 0.5237 GB, free: 32.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.3897, allocations: 0 / 0.5237 GB, free: 32.22 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.00148/0.3912, allocations: 1.061 MB / 0.5247 GB, free: 31.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3913, allocations: 8.844 kB / 0.5247 GB, free: 31.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.3915, allocations: 108 kB / 0.5249 GB, free: 31.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.392, allocations: 0.5025 MB / 0.5253 GB, free: 31.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.3921, allocations: 44.69 kB / 0.5254 GB, free: 31.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.238e-05/0.3922, allocations: 64.72 kB / 0.5254 GB, free: 31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008181/0.393, allocations: 0.6069 MB / 0.526 GB, free: 30.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.393, allocations: 0 / 0.526 GB, free: 30.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.3931, allocations: 21.75 kB / 0.5261 GB, free: 30.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.3931, allocations: 13.91 kB / 0.5261 GB, free: 30.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006442/0.3937, allocations: 397.1 kB / 0.5265 GB, free: 30.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.3969, allocations: 2.992 MB / 0.5294 GB, free: 28.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008262/0.3978, allocations: 442.6 kB / 0.5298 GB, free: 28.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.3981, allocations: 174.9 kB / 0.53 GB, free: 28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.3981, allocations: 5.438 kB / 0.53 GB, free: 28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.3981, allocations: 41.03 kB / 0.53 GB, free: 27.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=39): time 1.894e-06/0.3982, allocations: 0 / 0.53 GB, free: 27.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.001118/0.3993, allocations: 0.5467 MB / 0.5305 GB, free: 27.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.3993, allocations: 109.6 kB / 0.5306 GB, free: 27.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005427/0.3999, allocations: 0.552 MB / 0.5312 GB, free: 27.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.3999, allocations: 32.61 kB / 0.5312 GB, free: 27.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/0.4002, allocations: 373.6 kB / 0.5316 GB, free: 27.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.4003, allocations: 152.5 kB / 0.5317 GB, free: 26.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.4005, allocations: 118 kB / 0.5318 GB, free: 26.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.4006, allocations: 375.7 kB / 0.5322 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.401, allocations: 186.3 kB / 0.5324 GB, free: 26.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004663/0.4015, allocations: 397.4 kB / 0.5327 GB, free: 26.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007708/0.4023, allocations: 0.5671 MB / 0.5333 GB, free: 25.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.4023, allocations: 6.906 kB / 0.5333 GB, free: 25.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001013/0.4033, allocations: 0.6455 MB / 0.5339 GB, free: 25.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.985e-05/0.4033, allocations: 11.88 kB / 0.5339 GB, free: 25.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.4034, allocations: 14.7 kB / 0.534 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.4034, allocations: 12.78 kB / 0.534 GB, free: 25.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/0.4039, allocations: 139.9 kB / 0.5341 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.4039, allocations: 22.62 kB / 0.5341 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.4043, allocations: 73.47 kB / 0.5342 GB, free: 25.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.4043, allocations: 25.44 kB / 0.5342 GB, free: 25.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004276/0.4047, allocations: 306 kB / 0.5345 GB, free: 25.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003872/0.4051, allocations: 380.2 kB / 0.5349 GB, free: 24.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006698/0.4058, allocations: 0.5578 MB / 0.5354 GB, free: 24.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.797e-06/0.4058, allocations: 2.781 kB / 0.5354 GB, free: 24.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0008802/0.4067, allocations: 0.6292 MB / 0.536 GB, free: 24.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.4067, allocations: 8.625 kB / 0.536 GB, free: 24.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4068, allocations: 7.875 kB / 0.5361 GB, free: 24.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.315e-06/0.4068, allocations: 11.88 kB / 0.5361 GB, free: 24.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.4072, allocations: 139.1 kB / 0.5362 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.4072, allocations: 14.44 kB / 0.5362 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.4075, allocations: 58.25 kB / 0.5363 GB, free: 24.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.4076, allocations: 31.62 kB / 0.5363 GB, free: 24.03 MB / 378.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.4077, allocations: 221.3 kB / 0.5365 GB, free: 23.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.562e-05/0.4078, allocations: 70.66 kB / 0.5366 GB, free: 23.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.408, allocations: 71.98 kB / 0.5366 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.408, allocations: 9.188 kB / 0.5367 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.408, allocations: 0 / 0.5367 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.408, allocations: 2.625 kB / 0.5367 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000676/0.4087, allocations: 0.5687 MB / 0.5372 GB, free: 23.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4087, allocations: 0 / 0.5372 GB, free: 23.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.4092, allocations: 88.52 kB / 0.5373 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4092, allocations: 0 / 0.5373 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.4092, allocations: 13.25 kB / 0.5373 GB, free: 23.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.4092, allocations: 6.562 kB / 0.5373 GB, free: 23.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4092, allocations: 0 / 0.5373 GB, free: 23.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006083/0.4153, allocations: 3.881 MB / 0.5411 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.4155, allocations: 170.9 kB / 0.5413 GB, free: 20.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.4156, allocations: 13.02 kB / 0.5413 GB, free: 20.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003312/0.4159, allocations: 27.23 kB / 0.5413 GB, free: 20.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.4161, allocations: 33.41 kB / 0.5413 GB, free: 20.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.4161, allocations: 13.28 kB / 0.5414 GB, free: 20.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004949/0.4166, allocations: 381.5 kB / 0.5417 GB, free: 20.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4166, allocations: 0 / 0.5417 GB, free: 20.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00131/0.4179, allocations: 331.4 kB / 0.542 GB, free: 20.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001771/0.4181, allocations: 103.2 kB / 0.5421 GB, free: 20.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.4198, allocations: 0.7116 MB / 0.5428 GB, free: 20.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4198, allocations: 1.438 kB / 0.5428 GB, free: 20.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004151/0.4202, allocations: 191.7 kB / 0.543 GB, free: 20.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.4213, allocations: 186.7 kB / 0.5432 GB, free: 20.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.4238, allocations: 1.915 MB / 0.5451 GB, free: 18.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.4243, allocations: 0.917 MB / 0.546 GB, free: 18.17 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004857/0.4248, allocations: 87.31 kB / 0.546 GB, free: 18.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001511/0.4249, allocations: 49.88 kB / 0.5461 GB, free: 18.14 MB / 378.7 MB Notification: Performance of SimCode: time 8.91e-07/0.4249, allocations: 0 / 0.5461 GB, free: 18.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01464/0.4396, allocations: 7.211 MB / 0.5531 GB, free: 16.19 MB / 378.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@2/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