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.001389/0.001389, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.0017/0.0017, allocations: 165.1 kB / 24.82 MB, free: 9.27 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.9386/0.9386, allocations: 177 MB / 205.1 MB, free: 5.473 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.235/0.235, allocations: 34.86 MB / 296.6 MB, free: 0.5312 MB / 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.613e-06/1.613e-06, allocations: 0 / 379.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.178e-05/2.339e-05, allocations: 3.297 kB / 379.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004066/0.004089, allocations: 3.837 MB / 383.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.006485, allocations: 1.242 MB / 384.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004422/0.006927, allocations: 31.75 kB / 384.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.007237, allocations: 118.7 kB / 384.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004799/0.007717, allocations: 182.4 kB / 384.6 MB, free: 12.4 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006488/0.008366, allocations: 407.3 kB / 385 MB, free: 12 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008113/0.009177, allocations: 0.8539 MB / 385.9 MB, free: 11.14 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003668/0.009544, allocations: 197.6 kB / 386.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000653/0.0102, allocations: 470.7 kB / 386.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.01048, allocations: 239.1 kB / 386.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.002e-05/0.01055, allocations: 68 kB / 386.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.028e-05/0.01064, allocations: 75.98 kB / 386.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.01071, allocations: 159.3 kB / 387.1 MB, free: 9.945 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.01085, allocations: 223.3 kB / 387.3 MB, free: 9.727 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007524/0.0116, allocations: 0.5407 MB / 387.8 MB, free: 9.184 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.01161, allocations: 0 / 387.8 MB, free: 9.184 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01161, allocations: 0 / 387.8 MB, free: 9.184 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.01161, allocations: 0 / 387.8 MB, free: 9.184 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.0009843/0.0126, allocations: 1.099 MB / 388.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.01263, allocations: 12.03 kB / 388.9 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.01282, allocations: 140.4 kB / 389.1 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004495/0.01327, allocations: 0.4947 MB / 389.6 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.448e-05/0.01331, allocations: 45.69 kB / 389.6 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.673e-05/0.01336, allocations: 64.36 kB / 389.7 MB, free: 7.266 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.01384, allocations: 0.6016 MB / 390.3 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.01385, allocations: 3.938 kB / 390.3 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.01388, allocations: 24 kB / 390.3 MB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.01389, allocations: 12 kB / 390.3 MB, free: 6.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.01408, allocations: 176.2 kB / 390.5 MB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002071/0.01616, allocations: 3.372 MB / 393.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.01646, allocations: 250.7 kB / 394.1 MB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.744e-05/0.01654, allocations: 75.33 kB / 394.2 MB, free: 2.484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.01656, allocations: 8 kB / 394.2 MB, free: 2.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.01659, allocations: 41.39 kB / 394.2 MB, free: 2.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.633e-06/0.01659, allocations: 0 / 394.2 MB, free: 2.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=39): time 0.0003838/0.01697, allocations: 305.7 kB / 394.5 MB, free: 2.121 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003014/0.01727, allocations: 136.5 kB / 394.7 MB, free: 1.957 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003119/0.01758, allocations: 0.5576 MB / 395.2 MB, free: 1.387 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.01761, allocations: 41.7 kB / 395.3 MB, free: 1.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.01779, allocations: 431.3 kB / 395.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.01787, allocations: 166.6 kB / 395.8 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.01798, allocations: 119.9 kB / 396 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.01812, allocations: 0.5584 MB / 396.5 MB, free: 52 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.52e-05/0.01822, allocations: 70.2 kB / 396.6 MB, free: 15.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.01844, allocations: 424.9 kB / 397 MB, free: 15.42 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.01875, allocations: 461.7 kB / 397.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.01876, allocations: 8 kB / 397.5 MB, free: 14.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0004195/0.01918, allocations: 456.7 kB / 397.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.01919, allocations: 8 kB / 397.9 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.0192, allocations: 8 kB / 397.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.01921, allocations: 12 kB / 397.9 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.01947, allocations: 131.8 kB / 398.1 MB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.01948, allocations: 15.94 kB / 398.1 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.01966, allocations: 83.81 kB / 398.2 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.01968, allocations: 20 kB / 398.2 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001486/0.01983, allocations: 200.1 kB / 398.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002222/0.02005, allocations: 431.7 kB / 398.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002968/0.02034, allocations: 470.5 kB / 399.2 MB, free: 12.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.944e-06/0.02035, allocations: 0 / 399.2 MB, free: 12.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0004/0.02075, allocations: 464.6 kB / 399.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.02075, allocations: 12 kB / 399.7 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.02076, allocations: 8 kB / 399.7 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.504e-06/0.02077, allocations: 12 kB / 399.7 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.02099, allocations: 127.8 kB / 399.9 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.021, allocations: 15.92 kB / 399.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.02116, allocations: 59.66 kB / 399.9 MB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.02118, allocations: 24 kB / 400 MB, free: 12.04 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.0001251/0.02131, allocations: 314.6 kB / 400.3 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.763e-05/0.02139, allocations: 83.58 kB / 400.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.179e-05/0.02146, allocations: 70.17 kB / 400.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.02146, allocations: 4 kB / 400.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.02147, allocations: 4 kB / 400.4 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.02147, allocations: 3.984 kB / 400.4 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003505/0.02182, allocations: 332.7 kB / 400.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.02183, allocations: 0 / 400.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.02205, allocations: 79.89 kB / 400.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.02205, allocations: 4 kB / 400.8 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.02207, allocations: 12 kB / 400.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.02207, allocations: 7.938 kB / 400.9 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.02208, allocations: 0 / 400.9 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000697/0.02277, allocations: 0.6016 MB / 401.5 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.02288, allocations: 99.36 kB / 401.5 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.593e-05/0.02291, allocations: 12 kB / 401.6 MB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.02306, allocations: 19.98 kB / 401.6 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.02311, allocations: 31.94 kB / 401.6 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.02313, allocations: 15.98 kB / 401.6 MB, free: 10.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001698/0.0233, allocations: 342.9 kB / 402 MB, free: 9.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0233, allocations: 0 / 402 MB, free: 9.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004843/0.02378, allocations: 247.3 kB / 402.2 MB, free: 9.738 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.0001039/0.02389, allocations: 107.2 kB / 402.3 MB, free: 9.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004608/0.02435, allocations: 464.2 kB / 402.8 MB, free: 9.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.02435, allocations: 0 / 402.8 MB, free: 9.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.02446, allocations: 107.8 kB / 402.9 MB, free: 9.051 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005191/0.02497, allocations: 183.9 kB / 403 MB, free: 8.883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.02637, allocations: 1.245 MB / 404.3 MB, free: 7.598 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.128e-05/0.02645, allocations: 138.5 kB / 404.4 MB, free: 7.441 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.02665, allocations: 84.78 kB / 404.5 MB, free: 7.355 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.0269, allocations: 202.1 kB / 404.7 MB, free: 7.156 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0269, allocations: 0 / 404.7 MB, free: 7.156 MB / 378.7 MB Notification: Performance of Templates: time 0.009431/0.03633, allocations: 7.313 MB / 412 MB, free: 15.99 MB / 394.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: 2.9373600189574063]