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.00119/0.00119, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3342, allocations: 50.54 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005545/0.3398, allocations: 3.123 MB / 412.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.3422, allocations: 0.9891 MB / 413.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005696/0.3428, allocations: 15.94 kB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005831/0.3434, allocations: 83.19 kB / 413.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005818/0.3441, allocations: 107.1 kB / 413.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00089/0.345, allocations: 231.1 kB / 413.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008367/0.3459, allocations: 0.5146 MB / 414.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003989/0.3463, allocations: 181.2 kB / 414.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003725/0.3467, allocations: 191.2 kB / 414.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003734/0.347, allocations: 203 kB / 414.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.3472, allocations: 40 kB / 414.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.3473, allocations: 40 kB / 414.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.3474, allocations: 107.7 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.3477, allocations: 214.8 kB / 415.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008378/0.3485, allocations: 0.49 MB / 415.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.3486, allocations: 0 / 415.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3486, allocations: 0 / 415.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.844e-05/0.3486, allocations: 4 kB / 415.7 MB, free: 11.07 MB / 334.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.002328/0.351, allocations: 0.783 MB / 416.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.288e-05/0.351, allocations: 8.031 kB / 416.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.3513, allocations: 56.61 kB / 416.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007919/0.3521, allocations: 376 kB / 417 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.3521, allocations: 25.38 kB / 417 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.3523, allocations: 44.38 kB / 417 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.3536, allocations: 459.5 kB / 417.5 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.3536, allocations: 7.953 kB / 417.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.399e-05/0.3537, allocations: 16 kB / 417.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.3537, allocations: 8 kB / 417.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.3548, allocations: 379.6 kB / 417.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.3577, allocations: 1.563 MB / 419.4 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000911/0.3586, allocations: 306.7 kB / 419.7 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004531/0.3591, allocations: 160.8 kB / 419.9 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.598e-05/0.3592, allocations: 16.09 kB / 419.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/0.3592, allocations: 34.5 kB / 419.9 MB, free: 6.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.775e-06/0.3592, allocations: 4 kB / 419.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003577/0.3628, allocations: 1.389 MB / 421.3 MB, free: 5.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/0.3629, allocations: 114.8 kB / 421.4 MB, free: 5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/0.3634, allocations: 357.6 kB / 421.8 MB, free: 4.645 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.243e-05/0.3635, allocations: 33.7 kB / 421.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.3637, allocations: 244.3 kB / 422.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.3638, allocations: 123 kB / 422.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.364, allocations: 74.14 kB / 422.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3642, allocations: 350.8 kB / 422.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.3647, allocations: 174.4 kB / 422.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005313/0.3652, allocations: 253.7 kB / 423 MB, free: 3.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009419/0.3662, allocations: 399.9 kB / 423.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3662, allocations: 0 / 423.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001232/0.3674, allocations: 0.4931 MB / 423.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.3674, allocations: 4 kB / 423.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3675, allocations: 4 kB / 423.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/0.3675, allocations: 4 kB / 423.9 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008664/0.3684, allocations: 207.9 kB / 424.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/0.3701, allocations: 1.576 MB / 425.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/0.3705, allocations: 35.97 kB / 425.7 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.3706, allocations: 19.92 kB / 425.8 MB, free: 468 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005571/0.3711, allocations: 273 kB / 426 MB, free: 192 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006004/0.3718, allocations: 241.7 kB / 426.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007921/0.3726, allocations: 379.6 kB / 426.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.777e-06/0.3726, allocations: 0 / 426.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001033/0.3736, allocations: 472.9 kB / 427.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3736, allocations: 6.812 kB / 427.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3737, allocations: 8.219 kB / 427.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.304e-06/0.3737, allocations: 8 kB / 427.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/0.3741, allocations: 115.8 kB / 427.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.3742, allocations: 11.88 kB / 427.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003179/0.3745, allocations: 31.97 kB / 427.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.3745, allocations: 19.98 kB / 427.3 MB, free: 14.86 MB / 350.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.0001913/0.3747, allocations: 204.1 kB / 427.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.3748, allocations: 43.72 kB / 427.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.3749, allocations: 48.25 kB / 427.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.3749, allocations: 3.938 kB / 427.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3749, allocations: 0 / 427.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.375, allocations: 7.984 kB / 427.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.3767, allocations: 0.9116 MB / 428.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3767, allocations: 0 / 428.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.3771, allocations: 88 kB / 428.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.3771, allocations: 4 kB / 428.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.3772, allocations: 8 kB / 428.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.308e-05/0.3772, allocations: 7.938 kB / 428.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3772, allocations: 0 / 428.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.3786, allocations: 0.675 MB / 429.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.3788, allocations: 136.9 kB / 429.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.3788, allocations: 8 kB / 429.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.3791, allocations: 31.95 kB / 429.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3793, allocations: 35.91 kB / 429.5 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.3793, allocations: 15.92 kB / 429.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002927/0.3796, allocations: 251.2 kB / 429.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3796, allocations: 0 / 429.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005865/0.3802, allocations: 135.9 kB / 429.9 MB, free: 12.14 MB / 350.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.000167/0.3804, allocations: 103.2 kB / 430 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.3824, allocations: 0.6915 MB / 430.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.299e-06/0.3824, allocations: 0 / 430.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004812/0.3829, allocations: 188.2 kB / 430.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.3836, allocations: 100.6 kB / 431 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.3855, allocations: 1.015 MB / 432 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.386, allocations: 0.8233 MB / 432.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002783/0.3862, allocations: 63.22 kB / 432.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3864, allocations: 31.44 kB / 432.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3864, allocations: 0 / 432.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of Templates: time 0.01025/0.3966, allocations: 4.689 MB / 437.6 MB, free: 4.395 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches