Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009355/0.0009355, allocations: 108.1 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008317/0.0008318, allocations: 39.94 kB / 350 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2276, allocations: 49.43 MB / 399.4 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003693/0.2313, allocations: 3.14 MB / 402.6 MB, free: 30.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2329, allocations: 0.9499 MB / 403.5 MB, free: 29.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002505/0.2332, allocations: 15.88 kB / 403.6 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003581/0.2336, allocations: 63.5 kB / 403.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.2338, allocations: 87.33 kB / 403.7 MB, free: 29.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004783/0.2343, allocations: 215 kB / 403.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.2347, allocations: 0.4911 MB / 404.4 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.2349, allocations: 153.3 kB / 404.6 MB, free: 28.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.2351, allocations: 175.2 kB / 404.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.2353, allocations: 202.9 kB / 404.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.786e-05/0.2354, allocations: 27.94 kB / 404.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.779e-05/0.2354, allocations: 27.94 kB / 405 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.521e-05/0.2355, allocations: 79.67 kB / 405.1 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.2357, allocations: 194.8 kB / 405.2 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002848/0.2359, allocations: 459.8 kB / 405.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.236, allocations: 8 kB / 405.7 MB, free: 27.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.236, allocations: 0 / 405.7 MB, free: 27.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.236, allocations: 0 / 405.7 MB, free: 27.11 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00113/0.2371, allocations: 0.7639 MB / 406.5 MB, free: 26.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2372, allocations: 12.03 kB / 406.5 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.429e-05/0.2372, allocations: 48.38 kB / 406.5 MB, free: 26.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.2376, allocations: 359.7 kB / 406.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.2377, allocations: 29.38 kB / 406.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.502e-05/0.2377, allocations: 40.12 kB / 406.9 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007047/0.2384, allocations: 450.3 kB / 407.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.2385, allocations: 0 / 407.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.924e-05/0.2385, allocations: 16 kB / 407.4 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.2385, allocations: 12 kB / 407.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008458/0.2394, allocations: 375.6 kB / 407.8 MB, free: 24.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.2409, allocations: 1.578 MB / 409.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.2417, allocations: 328.3 kB / 409.7 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003704/0.242, allocations: 164.8 kB / 409.8 MB, free: 22.76 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.2421, allocations: 4 kB / 409.8 MB, free: 22.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.532e-05/0.2421, allocations: 34.56 kB / 409.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.814e-06/0.2421, allocations: 0 / 409.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002803/0.2449, allocations: 1.383 MB / 411.3 MB, free: 21.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.245, allocations: 81.11 kB / 411.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002732/0.2453, allocations: 353.6 kB / 411.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.2453, allocations: 29.7 kB / 411.7 MB, free: 20.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.2454, allocations: 243.9 kB / 411.9 MB, free: 20.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.189e-05/0.2455, allocations: 110.4 kB / 412.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.2456, allocations: 82.03 kB / 412.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.063e-05/0.2457, allocations: 350.7 kB / 412.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003966/0.2461, allocations: 178.5 kB / 412.7 MB, free: 19.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/0.2465, allocations: 252.8 kB / 412.9 MB, free: 19.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007715/0.2473, allocations: 387.5 kB / 413.3 MB, free: 19.1 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2473, allocations: 3.938 kB / 413.3 MB, free: 19.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000924/0.2482, allocations: 493 kB / 413.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2482, allocations: 8 kB / 413.8 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2483, allocations: 0 / 413.8 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.2483, allocations: 4 kB / 413.8 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007985/0.2491, allocations: 211.9 kB / 414 MB, free: 18.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.2503, allocations: 1.466 MB / 415.4 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.2506, allocations: 39.98 kB / 415.5 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.2507, allocations: 12 kB / 415.5 MB, free: 16.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004618/0.2511, allocations: 281 kB / 415.8 MB, free: 16.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003711/0.2515, allocations: 236.8 kB / 416 MB, free: 16.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006608/0.2522, allocations: 367.5 kB / 416.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.613e-06/0.2522, allocations: 0 / 416.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008207/0.253, allocations: 481 kB / 416.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.2531, allocations: 4.625 kB / 416.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.2531, allocations: 4 kB / 416.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.248e-06/0.2531, allocations: 4 kB / 416.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.2535, allocations: 120.1 kB / 417 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2535, allocations: 7.984 kB / 417 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.2538, allocations: 35.91 kB / 417 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.2538, allocations: 16 kB / 417 MB, free: 15.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.2539, allocations: 212 kB / 417.2 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.369e-05/0.254, allocations: 43.53 kB / 417.3 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.555e-05/0.2541, allocations: 48.23 kB / 417.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2541, allocations: 4 kB / 417.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.2541, allocations: 3.938 kB / 417.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.2541, allocations: 0 / 417.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.2555, allocations: 0.9111 MB / 418.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.2556, allocations: 7.984 kB / 418.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.2559, allocations: 88 kB / 418.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.256, allocations: 4 kB / 418.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.256, allocations: 8 kB / 418.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.256, allocations: 0 / 418.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.256, allocations: 4 kB / 418.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004566/0.2606, allocations: 3.144 MB / 421.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.2607, allocations: 136.7 kB / 421.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.2608, allocations: 4 kB / 421.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.261, allocations: 39.89 kB / 421.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.195e-05/0.2611, allocations: 27.91 kB / 421.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.2611, allocations: 15.92 kB / 421.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002066/0.2614, allocations: 247.2 kB / 422 MB, free: 9.973 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2614, allocations: 0 / 422 MB, free: 9.973 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007165/0.2621, allocations: 200 kB / 422.1 MB, free: 9.777 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.0001126/0.2622, allocations: 107.2 kB / 422.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.2639, allocations: 0.6881 MB / 422.9 MB, free: 8.977 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2639, allocations: 448 / 422.9 MB, free: 8.977 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003846/0.2643, allocations: 179.8 kB / 423.1 MB, free: 8.801 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006334/0.2649, allocations: 99.98 kB / 423.2 MB, free: 8.711 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.2666, allocations: 1.409 MB / 424.6 MB, free: 7.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.2668, allocations: 0.8276 MB / 425.5 MB, free: 6.398 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002853/0.2671, allocations: 59.23 kB / 425.5 MB, free: 6.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.971e-05/0.2672, allocations: 39.44 kB / 425.5 MB, free: 6.301 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2672, allocations: 0 / 425.5 MB, free: 6.301 MB / 298.7 MB Notification: Performance of Templates: time 0.007764/0.275, allocations: 5.031 MB / 430.6 MB, free: 1.312 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches