Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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(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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001853/0.001853, allocations: 103.4 kB / 17.98 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002503/0.002503, allocations: 209.8 kB / 18.92 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247.1 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.39 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1027, allocations: 50.52 MB / 357.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006745/0.1095, allocations: 3.145 MB / 360.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.1121, allocations: 0.9817 MB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000517/0.1127, allocations: 19.88 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004544/0.1132, allocations: 67.5 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004696/0.1137, allocations: 83.39 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008861/0.1146, allocations: 211.1 kB / 362.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000889/0.1155, allocations: 0.5029 MB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005401/0.1161, allocations: 181.2 kB / 362.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003645/0.1164, allocations: 191.1 kB / 363 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.1168, allocations: 214.9 kB / 363.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.117, allocations: 40 kB / 363.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.1171, allocations: 40 kB / 363.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1173, allocations: 99.67 kB / 363.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.1176, allocations: 218.8 kB / 363.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006661/0.1182, allocations: 371.4 kB / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1182, allocations: 0 / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1183, allocations: 0 / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1183, allocations: 0 / 364 MB, free: 8.078 MB / 302.1 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.001784/0.1201, allocations: 0.7639 MB / 364.7 MB, free: 7.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.1201, allocations: 11.97 kB / 364.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.1203, allocations: 52.38 kB / 364.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.1209, allocations: 359.7 kB / 365.1 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.054e-05/0.121, allocations: 37.31 kB / 365.2 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1211, allocations: 36.38 kB / 365.2 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.1224, allocations: 455.5 kB / 365.6 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/0.1225, allocations: 7.906 kB / 365.7 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.216e-05/0.1225, allocations: 12 kB / 365.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1226, allocations: 12 kB / 365.7 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.124, allocations: 375.6 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.127, allocations: 1.579 MB / 367.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.1282, allocations: 310.6 kB / 367.9 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006098/0.1288, allocations: 168.8 kB / 368.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.365e-05/0.1289, allocations: 11.92 kB / 368.1 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/0.1289, allocations: 30.56 kB / 368.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.374e-06/0.1289, allocations: 0 / 368.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003911/0.1328, allocations: 1.381 MB / 369.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.133, allocations: 110.8 kB / 369.6 MB, free: 2.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.1334, allocations: 353.6 kB / 370 MB, free: 1.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.1334, allocations: 29.7 kB / 370 MB, free: 1.668 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.1336, allocations: 247.9 kB / 370.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.46e-05/0.1337, allocations: 118.5 kB / 370.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.1339, allocations: 78.03 kB / 370.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.1341, allocations: 350.8 kB / 370.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.1345, allocations: 166.5 kB / 370.9 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005143/0.1351, allocations: 265.6 kB / 371.2 MB, free: 420 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008697/0.1359, allocations: 391.4 kB / 371.6 MB, free: 0 / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.1943/0.3303, allocations: 0.6406 kB / 371.6 MB, free: 20.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001421/0.3317, allocations: 485.1 kB / 372.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3318, allocations: 6.219 kB / 372.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3318, allocations: 2.625 kB / 372.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.3318, allocations: 4.656 kB / 372.1 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009095/0.3327, allocations: 208.6 kB / 372.3 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001426/0.3342, allocations: 1.577 MB / 373.8 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.3345, allocations: 40.97 kB / 373.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.3346, allocations: 14.89 kB / 373.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005465/0.3351, allocations: 272.2 kB / 374.2 MB, free: 18.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004477/0.3356, allocations: 245.2 kB / 374.4 MB, free: 18.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00078/0.3364, allocations: 376.7 kB / 374.8 MB, free: 18.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.276e-06/0.3364, allocations: 3.969 kB / 374.8 MB, free: 18.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001016/0.3374, allocations: 468.4 kB / 375.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.3374, allocations: 11.34 kB / 375.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3375, allocations: 8.547 kB / 375.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.502e-06/0.3375, allocations: 5.422 kB / 375.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005574/0.338, allocations: 117.8 kB / 375.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.3381, allocations: 8.5 kB / 375.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.3384, allocations: 42.14 kB / 375.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.3384, allocations: 11.38 kB / 375.4 MB, free: 18.66 MB / 302.1 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.0001241/0.3385, allocations: 208 kB / 375.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.795e-05/0.3386, allocations: 41.67 kB / 375.7 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.583e-05/0.3387, allocations: 47.08 kB / 375.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3387, allocations: 4.172 kB / 375.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3387, allocations: 3.875 kB / 375.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.3387, allocations: 6.922 kB / 375.7 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.3404, allocations: 0.9098 MB / 376.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.3404, allocations: 0 / 376.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004147/0.3409, allocations: 91.2 kB / 376.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.3409, allocations: 2.844 kB / 376.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.743e-05/0.3409, allocations: 8.031 kB / 376.7 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.3409, allocations: 2.844 kB / 376.8 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3409, allocations: 9.75 kB / 376.8 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.3423, allocations: 0.6727 MB / 377.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.3425, allocations: 136.4 kB / 377.6 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.972e-05/0.3425, allocations: 8.125 kB / 377.6 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.3428, allocations: 41.36 kB / 377.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/0.3429, allocations: 29.06 kB / 377.6 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.343, allocations: 11.31 kB / 377.7 MB, free: 17.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000238/0.3432, allocations: 250.5 kB / 377.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3432, allocations: 0 / 377.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005736/0.3438, allocations: 133.2 kB / 378 MB, free: 17.25 MB / 302.1 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.0001178/0.3439, allocations: 107.6 kB / 378.1 MB, free: 17.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.3459, allocations: 0.6985 MB / 378.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3459, allocations: 1 kB / 378.8 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004435/0.3463, allocations: 181.8 kB / 379 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006968/0.347, allocations: 101.6 kB / 379.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.3488, allocations: 1.203 MB / 380.3 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.3491, allocations: 0.8186 MB / 381.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.3492, allocations: 34.39 kB / 381.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3492, allocations: 0 / 381.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Templates: time 0.009697/0.3589, allocations: 5.947 MB / 387.1 MB, free: 13.71 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches