Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009541/0.0009542, allocations: 195 kB / 16.78 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 244.1 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007458/0.0007458, allocations: 98.3 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3183/0.3183, allocations: 44.83 MB / 393 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002997, allocations: 12 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3083, allocations: 62.95 MB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.4248, allocations: 96.65 MB / 0.6109 GB, free: 8.738 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.4251, allocations: 71.97 kB / 0.6109 GB, free: 8.668 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03838/0.4635, allocations: 14.55 MB / 0.6251 GB, free: 10.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.157e-06/0.4635, allocations: 4 kB / 0.6251 GB, free: 10.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.07e-05/0.4636, allocations: 19.94 kB / 0.6252 GB, free: 10.05 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.001657/0.4652, allocations: 0.9697 MB / 0.6261 GB, free: 9.027 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.4653, allocations: 12.03 kB / 0.6261 GB, free: 9.016 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.4655, allocations: 103.9 kB / 0.6262 GB, free: 8.914 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008221/0.4663, allocations: 0.5317 MB / 0.6267 GB, free: 8.344 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.744e-05/0.4664, allocations: 45.69 kB / 0.6268 GB, free: 8.297 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.408e-05/0.4665, allocations: 68.36 kB / 0.6268 GB, free: 8.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009704/0.4675, allocations: 0.616 MB / 0.6274 GB, free: 7.559 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.4675, allocations: 15.78 kB / 0.6275 GB, free: 7.543 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.4676, allocations: 20 kB / 0.6275 GB, free: 7.523 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.4676, allocations: 16 kB / 0.6275 GB, free: 7.508 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007748/0.4684, allocations: 398.2 kB / 0.6279 GB, free: 7.117 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003719/0.4721, allocations: 3.027 MB / 0.6308 GB, free: 3.957 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009609/0.4731, allocations: 465.8 kB / 0.6313 GB, free: 3.48 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003569/0.4734, allocations: 185.7 kB / 0.6314 GB, free: 3.293 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.58e-05/0.4735, allocations: 15.92 kB / 0.6315 GB, free: 3.277 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.4736, allocations: 38.56 kB / 0.6315 GB, free: 3.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 2.545e-06/0.4736, allocations: 0 / 0.6315 GB, free: 3.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001321/0.4749, allocations: 0.5798 MB / 0.6321 GB, free: 2.641 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/0.475, allocations: 106.8 kB / 0.6322 GB, free: 2.512 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006605/0.4756, allocations: 0.5547 MB / 0.6327 GB, free: 1.945 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.897e-05/0.4757, allocations: 37.7 kB / 0.6327 GB, free: 1.902 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.476, allocations: 364.1 kB / 0.6331 GB, free: 1.543 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.4761, allocations: 157.7 kB / 0.6332 GB, free: 1.387 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.4762, allocations: 12 kB / 0.6333 GB, free: 1.375 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.4764, allocations: 374.8 kB / 0.6336 GB, free: 1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000421/0.4768, allocations: 193.2 kB / 0.6338 GB, free: 0.8086 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000549/0.4774, allocations: 405.6 kB / 0.6342 GB, free: 328 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009387/0.4783, allocations: 0.5925 MB / 0.6348 GB, free: 15.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.4783, allocations: 4 kB / 0.6348 GB, free: 15.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001195/0.4795, allocations: 0.6606 MB / 0.6354 GB, free: 14.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000218/0.4797, allocations: 297 kB / 0.6357 GB, free: 14.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.4798, allocations: 8 kB / 0.6357 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/0.4798, allocations: 15.94 kB / 0.6357 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005381/0.4803, allocations: 147.7 kB / 0.6359 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.15e-05/0.4804, allocations: 15.94 kB / 0.6359 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.4808, allocations: 75.41 kB / 0.6359 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.4808, allocations: 28 kB / 0.636 GB, free: 14.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-06/0.4808, allocations: 4 kB / 0.636 GB, free: 14.29 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009898/0.4818, allocations: 0.5427 MB / 0.6365 GB, free: 13.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.4819, allocations: 12.03 kB / 0.6365 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.4819, allocations: 8 kB / 0.6365 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004632/0.4823, allocations: 143.8 kB / 0.6367 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.4824, allocations: 11.94 kB / 0.6367 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.4827, allocations: 67.45 kB / 0.6367 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.4828, allocations: 28 kB / 0.6368 GB, free: 13.48 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.0003415/0.4831, allocations: 276.9 kB / 0.637 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.4832, allocations: 63.25 kB / 0.6371 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001536/0.4834, allocations: 74.17 kB / 0.6372 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.4834, allocations: 4 kB / 0.6372 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.4834, allocations: 0 / 0.6372 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4834, allocations: 3.938 kB / 0.6372 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008272/0.4843, allocations: 0.5751 MB / 0.6377 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.4843, allocations: 0 / 0.6377 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.4848, allocations: 99.88 kB / 0.6378 GB, free: 12.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4848, allocations: 0 / 0.6378 GB, free: 12.33 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.4848, allocations: 8 kB / 0.6378 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.4848, allocations: 8 kB / 0.6378 GB, free: 12.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4849, allocations: 0 / 0.6378 GB, free: 12.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.4862, allocations: 0.8204 MB / 0.6386 GB, free: 11.47 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.4864, allocations: 176.4 kB / 0.6388 GB, free: 11.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.4865, allocations: 8 kB / 0.6388 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.4868, allocations: 31.98 kB / 0.6388 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.4869, allocations: 27.95 kB / 0.6389 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.487, allocations: 11.98 kB / 0.6389 GB, free: 11.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004404/0.4874, allocations: 391 kB / 0.6393 GB, free: 10.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4874, allocations: 0 / 0.6393 GB, free: 10.83 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008128/0.4882, allocations: 251.1 kB / 0.6395 GB, free: 10.58 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.0001636/0.4884, allocations: 117.4 kB / 0.6396 GB, free: 10.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.4899, allocations: 0.7606 MB / 0.6404 GB, free: 9.703 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4899, allocations: 0 / 0.6404 GB, free: 9.703 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.4903, allocations: 208.3 kB / 0.6405 GB, free: 9.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.4912, allocations: 156.8 kB / 0.6407 GB, free: 9.352 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.4934, allocations: 1.724 MB / 0.6424 GB, free: 7.59 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4939, allocations: 0.9152 MB / 0.6433 GB, free: 6.648 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.494, allocations: 51.42 kB / 0.6433 GB, free: 6.598 MB / 458.7 MB Notification: Performance of SimCode: time 3.4e-07/0.494, allocations: 0 / 0.6433 GB, free: 6.598 MB / 458.7 MB Notification: Performance of Templates: time 0.0106/0.5046, allocations: 7.729 MB / 0.6509 GB, free: 14.9 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches