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.002624/0.002624, allocations: 200.9 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.635/1.635, allocations: 226.5 MB / 245.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009813/0.0009813, allocations: 99.77 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4134/0.4134, allocations: 44.82 MB / 394.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.0002931, allocations: 7.984 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3895, allocations: 62.96 MB / 0.5184 GB, free: 37.5 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.519, allocations: 96.66 MB / 0.6128 GB, free: 8.633 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.5193, allocations: 75.95 kB / 0.6129 GB, free: 8.562 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0401/0.5594, allocations: 14.55 MB / 0.6271 GB, free: 9.965 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5595, allocations: 0 / 0.6271 GB, free: 9.965 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.757e-05/0.5596, allocations: 19.94 kB / 0.6271 GB, free: 9.945 MB / 442.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.002331/0.5619, allocations: 0.9697 MB / 0.6281 GB, free: 8.926 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.562, allocations: 12.03 kB / 0.6281 GB, free: 8.914 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004436/0.5624, allocations: 99.91 kB / 0.6282 GB, free: 8.816 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.5636, allocations: 0.5356 MB / 0.6287 GB, free: 8.242 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/0.5637, allocations: 45.69 kB / 0.6287 GB, free: 8.195 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.5638, allocations: 60.38 kB / 0.6288 GB, free: 8.137 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.5649, allocations: 0.6199 MB / 0.6294 GB, free: 7.461 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/0.565, allocations: 7.844 kB / 0.6294 GB, free: 7.453 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.565, allocations: 24 kB / 0.6294 GB, free: 7.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.5651, allocations: 15.94 kB / 0.6294 GB, free: 7.414 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008554/0.5659, allocations: 402.2 kB / 0.6298 GB, free: 7.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00454/0.5705, allocations: 3.032 MB / 0.6328 GB, free: 3.852 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.5715, allocations: 461.7 kB / 0.6332 GB, free: 3.379 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003622/0.5719, allocations: 185.7 kB / 0.6334 GB, free: 3.191 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.101e-05/0.5719, allocations: 8.031 kB / 0.6334 GB, free: 3.184 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.572, allocations: 38.56 kB / 0.6334 GB, free: 3.137 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 3.196e-06/0.572, allocations: 0 / 0.6334 GB, free: 3.137 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001339/0.5733, allocations: 0.5836 MB / 0.634 GB, free: 2.543 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.5734, allocations: 110.8 kB / 0.6341 GB, free: 2.41 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007353/0.5742, allocations: 0.5547 MB / 0.6347 GB, free: 1.844 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.695e-05/0.5742, allocations: 37.7 kB / 0.6347 GB, free: 1.801 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003/0.5745, allocations: 364.1 kB / 0.635 GB, free: 1.441 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.5747, allocations: 157.7 kB / 0.6352 GB, free: 1.285 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.5748, allocations: 16 kB / 0.6352 GB, free: 1.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.575, allocations: 374.8 kB / 0.6356 GB, free: 0.8945 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000446/0.5754, allocations: 185.2 kB / 0.6357 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005618/0.576, allocations: 405.6 kB / 0.6361 GB, free: 228 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.577, allocations: 0.5924 MB / 0.6367 GB, free: 15.54 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.577, allocations: 4 kB / 0.6367 GB, free: 15.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001384/0.5784, allocations: 0.6644 MB / 0.6374 GB, free: 14.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003155/0.5788, allocations: 293.6 kB / 0.6376 GB, free: 14.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/0.5788, allocations: 8 kB / 0.6376 GB, free: 14.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.5788, allocations: 15.94 kB / 0.6377 GB, free: 14.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005649/0.5794, allocations: 143.8 kB / 0.6378 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-05/0.5794, allocations: 23.91 kB / 0.6378 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.58, allocations: 71.42 kB / 0.6379 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.565e-05/0.58, allocations: 28 kB / 0.6379 GB, free: 14.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.5801, allocations: 8 kB / 0.6379 GB, free: 14.19 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001161/0.5812, allocations: 0.5389 MB / 0.6385 GB, free: 13.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.5812, allocations: 8 kB / 0.6385 GB, free: 13.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.5813, allocations: 11.98 kB / 0.6385 GB, free: 13.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004757/0.5818, allocations: 139.8 kB / 0.6386 GB, free: 13.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.065e-05/0.5818, allocations: 11.94 kB / 0.6386 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004973/0.5823, allocations: 75.45 kB / 0.6387 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-05/0.5824, allocations: 28.03 kB / 0.6387 GB, free: 13.38 MB / 458.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.0005666/0.5829, allocations: 272.9 kB / 0.639 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.5831, allocations: 63.25 kB / 0.639 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.5833, allocations: 78.16 kB / 0.6391 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.5833, allocations: 4 kB / 0.6391 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.5833, allocations: 0 / 0.6391 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.5834, allocations: 3.938 kB / 0.6391 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.5844, allocations: 0.5789 MB / 0.6397 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.5844, allocations: 7.938 kB / 0.6397 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.5849, allocations: 95.88 kB / 0.6398 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5849, allocations: 0 / 0.6398 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.585, allocations: 8 kB / 0.6398 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.585, allocations: 4 kB / 0.6398 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.585, allocations: 0 / 0.6398 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.5864, allocations: 0.8199 MB / 0.6406 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.5867, allocations: 172.4 kB / 0.6408 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.996e-05/0.5868, allocations: 15.98 kB / 0.6408 GB, free: 11.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.5872, allocations: 27.98 kB / 0.6408 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.5873, allocations: 27.95 kB / 0.6408 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.5873, allocations: 11.98 kB / 0.6408 GB, free: 11.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005123/0.5878, allocations: 383 kB / 0.6412 GB, free: 10.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.723e-06/0.5878, allocations: 0 / 0.6412 GB, free: 10.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0009958/0.5888, allocations: 259 kB / 0.6415 GB, free: 10.48 MB / 458.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.0002068/0.5891, allocations: 111.2 kB / 0.6416 GB, free: 10.36 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001702/0.5908, allocations: 0.7565 MB / 0.6423 GB, free: 9.609 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.5908, allocations: 0 / 0.6423 GB, free: 9.609 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004059/0.5912, allocations: 200.2 kB / 0.6425 GB, free: 9.414 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.5923, allocations: 166.6 kB / 0.6426 GB, free: 9.254 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.5952, allocations: 1.684 MB / 0.6443 GB, free: 7.539 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007167/0.5959, allocations: 0.9152 MB / 0.6452 GB, free: 6.598 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004942/0.5964, allocations: 80.83 kB / 0.6453 GB, free: 6.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.5965, allocations: 43.44 kB / 0.6453 GB, free: 6.477 MB / 458.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5966, allocations: 0 / 0.6453 GB, free: 6.477 MB / 458.7 MB Notification: Performance of Templates: time 0.01456/0.6111, allocations: 6.006 MB / 0.6512 GB, free: 0.5273 MB / 458.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/jenkins1/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