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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009307/0.0009307, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009363/0.0009363, allocations: 160.9 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9406/0.9406, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.242/0.242, allocations: 34.87 MB / 296.6 MB, free: 480 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,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=5004,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 378.7 MB, free: 2.406 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.157e-05/2.31e-05, allocations: 6.25 kB / 378.8 MB, free: 2.398 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.003749/0.003773, allocations: 3.86 MB / 382.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.005605, allocations: 1.242 MB / 383.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003334/0.005938, allocations: 35.75 kB / 383.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.006187, allocations: 126.6 kB / 384 MB, free: 13.1 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.006605, allocations: 186.3 kB / 384.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005837/0.007189, allocations: 407.3 kB / 384.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006736/0.007863, allocations: 0.85 MB / 385.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.008169, allocations: 201.6 kB / 385.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00048/0.008649, allocations: 470.8 kB / 386.1 MB, free: 11 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002385/0.008888, allocations: 239.1 kB / 386.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.005e-05/0.008958, allocations: 68 kB / 386.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.475e-05/0.009043, allocations: 76 kB / 386.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.009125, allocations: 163.3 kB / 386.6 MB, free: 10.46 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.009264, allocations: 219.3 kB / 386.8 MB, free: 10.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005082/0.009772, allocations: 0.5407 MB / 387.4 MB, free: 9.703 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.009775, allocations: 0 / 387.4 MB, free: 9.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.009776, allocations: 0 / 387.4 MB, free: 9.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.009783, allocations: 0 / 387.4 MB, free: 9.703 MB / 362.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.001108/0.01089, allocations: 1.079 MB / 388.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.01092, allocations: 12.03 kB / 388.5 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002021/0.01113, allocations: 152.3 kB / 388.6 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.01164, allocations: 498.7 kB / 389.1 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.01168, allocations: 45.69 kB / 389.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/0.01174, allocations: 60.38 kB / 389.2 MB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006201/0.01236, allocations: 0.6329 MB / 389.9 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.01238, allocations: 7.922 kB / 389.9 MB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.781e-05/0.01242, allocations: 36 kB / 389.9 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.01243, allocations: 12 kB / 389.9 MB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.01275, allocations: 199.6 kB / 390.1 MB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.01522, allocations: 3.364 MB / 393.5 MB, free: 3.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.01565, allocations: 262.8 kB / 393.7 MB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.01577, allocations: 87.38 kB / 393.8 MB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.0158, allocations: 15.97 kB / 393.8 MB, free: 2.922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.01583, allocations: 41.39 kB / 393.9 MB, free: 2.871 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.983e-06/0.01583, allocations: 0 / 393.9 MB, free: 2.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0005347/0.01637, allocations: 337.7 kB / 394.2 MB, free: 2.535 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.01642, allocations: 140.5 kB / 394.3 MB, free: 2.367 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000421/0.01684, allocations: 0.5658 MB / 394.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.01687, allocations: 33.7 kB / 394.9 MB, free: 1.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.01707, allocations: 435.4 kB / 395.4 MB, free: 1.316 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.315e-05/0.01716, allocations: 154.7 kB / 395.5 MB, free: 1.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.01727, allocations: 123.9 kB / 395.6 MB, free: 1.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.01742, allocations: 0.5469 MB / 396.2 MB, free: 488 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.01758, allocations: 90.25 kB / 396.3 MB, free: 396 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.01788, allocations: 440.9 kB / 396.7 MB, free: 15.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004382/0.01832, allocations: 493.7 kB / 397.2 MB, free: 15.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.01833, allocations: 4 kB / 397.2 MB, free: 15.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0005723/0.0189, allocations: 488.5 kB / 397.7 MB, free: 14.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.01891, allocations: 11.94 kB / 397.7 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.01893, allocations: 11.98 kB / 397.7 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.01894, allocations: 8 kB / 397.7 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.01924, allocations: 132.5 kB / 397.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.01925, allocations: 19.92 kB / 397.8 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.01945, allocations: 79.44 kB / 397.9 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.01948, allocations: 28 kB / 397.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002242/0.0197, allocations: 212.1 kB / 398.1 MB, free: 14.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002855/0.01999, allocations: 443.8 kB / 398.6 MB, free: 13.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004155/0.0204, allocations: 490.6 kB / 399.1 MB, free: 13.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/0.02041, allocations: 3.984 kB / 399.1 MB, free: 13.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0005527/0.02096, allocations: 0.5003 MB / 399.6 MB, free: 12.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-06/0.02097, allocations: 8 kB / 399.6 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.02098, allocations: 8 kB / 399.6 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.984e-06/0.02098, allocations: 8 kB / 399.6 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.02125, allocations: 135.8 kB / 399.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.02125, allocations: 12 kB / 399.7 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.02144, allocations: 55.94 kB / 399.8 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.02146, allocations: 32 kB / 399.8 MB, free: 12.27 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.0001442/0.02161, allocations: 315.8 kB / 400.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.58e-05/0.02169, allocations: 75.58 kB / 400.2 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.809e-05/0.02177, allocations: 74.17 kB / 400.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.02177, allocations: 4 kB / 400.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.02178, allocations: 0 / 400.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.02178, allocations: 3.984 kB / 400.3 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.02222, allocations: 412.1 kB / 400.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.02223, allocations: 0 / 400.7 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.02248, allocations: 87.89 kB / 400.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.02248, allocations: 4 kB / 400.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.02251, allocations: 12 kB / 400.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.02251, allocations: 0 / 400.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.02251, allocations: 0 / 400.8 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.02308, allocations: 0.6367 MB / 401.4 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.0232, allocations: 99.36 kB / 401.5 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.02325, allocations: 8 kB / 401.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.02342, allocations: 31.91 kB / 401.6 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.115e-05/0.02349, allocations: 27.95 kB / 401.6 MB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.02351, allocations: 15.98 kB / 401.6 MB, free: 10.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002667/0.02378, allocations: 367 kB / 402 MB, free: 10.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02378, allocations: 4 kB / 402 MB, free: 10.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005544/0.02433, allocations: 243.3 kB / 402.2 MB, free: 9.82 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.0001008/0.02443, allocations: 103.2 kB / 402.3 MB, free: 9.707 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006423/0.02507, allocations: 496.4 kB / 402.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.02508, allocations: 4.062 kB / 402.8 MB, free: 9.211 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.02522, allocations: 127.8 kB / 402.9 MB, free: 9.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.02581, allocations: 198.3 kB / 403.1 MB, free: 8.902 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001736/0.02754, allocations: 1.241 MB / 404.3 MB, free: 7.621 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.294e-05/0.02763, allocations: 138.5 kB / 404.5 MB, free: 7.465 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.02786, allocations: 76.8 kB / 404.6 MB, free: 7.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.212e-05/0.02795, allocations: 44.5 kB / 404.6 MB, free: 7.344 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.02795, allocations: 0 / 404.6 MB, free: 7.344 MB / 378.7 MB Notification: Performance of Templates: time 0.009225/0.03718, allocations: 6.729 MB / 411.3 MB, free: 0.7422 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1016074079088867]