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.001013/0.001013, allocations: 87.67 kB / 21.19 MB, free: 3.367 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.001024/0.001024, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 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 1.036/1.036, allocations: 177 MB / 204.8 MB, free: 5.609 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.2977/0.2977, allocations: 34.86 MB / 296.3 MB, free: 476 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 2.344e-06/2.344e-06, allocations: 0 / 378.8 MB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.046e-05/3.28e-05, allocations: 3.156 kB / 378.8 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006025/0.006057, allocations: 3.873 MB / 382.6 MB, free: 14.15 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.008153, allocations: 1.254 MB / 383.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003212/0.008475, allocations: 31.75 kB / 383.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.00873, allocations: 118.7 kB / 384 MB, free: 12.74 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004966/0.009227, allocations: 190.3 kB / 384.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000637/0.009864, allocations: 407.3 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007191/0.01058, allocations: 0.8578 MB / 385.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003282/0.01091, allocations: 193.7 kB / 385.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005866/0.0115, allocations: 474.7 kB / 386.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.0118, allocations: 239.1 kB / 386.4 MB, free: 10.39 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.698e-05/0.01188, allocations: 68 kB / 386.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.01199, allocations: 72 kB / 386.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.867e-05/0.01209, allocations: 171.3 kB / 386.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.01225, allocations: 215.3 kB / 386.9 MB, free: 9.879 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005721/0.01282, allocations: 0.5368 MB / 387.4 MB, free: 9.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.01282, allocations: 0 / 387.4 MB, free: 9.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01282, allocations: 0 / 387.4 MB, free: 9.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.01283, allocations: 3.938 kB / 387.4 MB, free: 9.336 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.001216/0.01405, allocations: 1.079 MB / 388.5 MB, free: 8.219 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.01409, allocations: 8.031 kB / 388.5 MB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002489/0.01434, allocations: 148.3 kB / 388.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005309/0.01487, allocations: 0.4987 MB / 389.2 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.01492, allocations: 41.69 kB / 389.2 MB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.599e-05/0.01498, allocations: 60.38 kB / 389.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006788/0.01566, allocations: 0.6368 MB / 389.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.01569, allocations: 7.922 kB / 389.9 MB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.01572, allocations: 24 kB / 389.9 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.01574, allocations: 12 kB / 389.9 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.01606, allocations: 203.6 kB / 390.1 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.01859, allocations: 3.357 MB / 393.5 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.01899, allocations: 270.8 kB / 393.8 MB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.0191, allocations: 87.34 kB / 393.8 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.01913, allocations: 11.98 kB / 393.8 MB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.01916, allocations: 45.42 kB / 393.9 MB, free: 2.508 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.983e-06/0.01916, allocations: 0 / 393.9 MB, free: 2.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0004946/0.01966, allocations: 341.6 kB / 394.2 MB, free: 2.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.01971, allocations: 136.5 kB / 394.4 MB, free: 2.004 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003817/0.02009, allocations: 0.5697 MB / 394.9 MB, free: 1.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.543e-05/0.02011, allocations: 37.7 kB / 395 MB, free: 1.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.0203, allocations: 423.4 kB / 395.4 MB, free: 0.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.02038, allocations: 158.7 kB / 395.5 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.0205, allocations: 123.9 kB / 395.7 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.02065, allocations: 0.5469 MB / 396.2 MB, free: 116 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.02078, allocations: 90.25 kB / 396.3 MB, free: 24 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.02106, allocations: 440.9 kB / 396.7 MB, free: 15.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/0.02154, allocations: 489.8 kB / 397.2 MB, free: 14.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.02154, allocations: 0 / 397.2 MB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0005668/0.02211, allocations: 0.4889 MB / 397.7 MB, free: 14.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.02214, allocations: 8 kB / 397.7 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.02215, allocations: 11.97 kB / 397.7 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.02217, allocations: 12 kB / 397.7 MB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.02248, allocations: 131.8 kB / 397.8 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.02249, allocations: 15.92 kB / 397.9 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.02269, allocations: 83.88 kB / 397.9 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.02272, allocations: 24 kB / 398 MB, free: 14.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002191/0.02294, allocations: 216.1 kB / 398.2 MB, free: 13.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003245/0.02326, allocations: 439.9 kB / 398.6 MB, free: 13.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004558/0.02372, allocations: 494.5 kB / 399.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.976e-06/0.02372, allocations: 7.938 kB / 399.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0005412/0.02426, allocations: 0.5006 MB / 399.6 MB, free: 12.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.02427, allocations: 8 kB / 399.6 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.02427, allocations: 4 kB / 399.6 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/0.02428, allocations: 12 kB / 399.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002669/0.02455, allocations: 127.8 kB / 399.8 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.02456, allocations: 15.94 kB / 399.8 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.02473, allocations: 55.66 kB / 399.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.02476, allocations: 28 kB / 399.8 MB, free: 11.9 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.0001641/0.02492, allocations: 315.8 kB / 400.2 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.964e-05/0.02502, allocations: 79.58 kB / 400.2 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.854e-05/0.02511, allocations: 70.17 kB / 400.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.02512, allocations: 4 kB / 400.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.02512, allocations: 4 kB / 400.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.02513, allocations: 3.984 kB / 400.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004488/0.02558, allocations: 420.1 kB / 400.7 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.02558, allocations: 0 / 400.7 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.02584, allocations: 75.89 kB / 400.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.02585, allocations: 4 kB / 400.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.02588, allocations: 16 kB / 400.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.02588, allocations: 0 / 400.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.02588, allocations: 4 kB / 400.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006641/0.02655, allocations: 0.6367 MB / 401.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.02671, allocations: 99.36 kB / 401.6 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.717e-05/0.02678, allocations: 8 kB / 401.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002691/0.02705, allocations: 27.97 kB / 401.6 MB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.251e-05/0.02714, allocations: 27.95 kB / 401.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.02715, allocations: 11.98 kB / 401.6 MB, free: 10.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.02741, allocations: 371 kB / 402 MB, free: 9.695 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02741, allocations: 0 / 402 MB, free: 9.695 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005194/0.02793, allocations: 247.3 kB / 402.2 MB, free: 9.453 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 9.833e-05/0.02803, allocations: 107.2 kB / 402.3 MB, free: 9.336 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005768/0.0286, allocations: 492.3 kB / 402.8 MB, free: 8.848 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.0286, allocations: 0 / 402.8 MB, free: 8.848 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.02874, allocations: 119.9 kB / 402.9 MB, free: 8.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.02928, allocations: 196.6 kB / 403.1 MB, free: 8.543 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.0308, allocations: 1.245 MB / 404.4 MB, free: 7.258 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.491e-05/0.03088, allocations: 142.5 kB / 404.5 MB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001945/0.03108, allocations: 80.8 kB / 404.6 MB, free: 7.016 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.744e-05/0.03117, allocations: 44.5 kB / 404.6 MB, free: 6.973 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.03117, allocations: 0 / 404.6 MB, free: 6.973 MB / 378.7 MB Notification: Performance of Templates: time 0.01066/0.04184, allocations: 7.097 MB / 411.7 MB, free: 4 kB / 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.365702300798148]