Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 109.4 kB / 17.73 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 192.2 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 48.3 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1172, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004974/0.1222, allocations: 3.118 MB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.1245, allocations: 1.013 MB / 379.3 MB, free: 432 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005157/0.1251, allocations: 15.94 kB / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004845/0.1256, allocations: 87.17 kB / 379.4 MB, free: 328 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004779/0.1261, allocations: 111.1 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2033/0.3294, allocations: 226.4 kB / 379.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.3307, allocations: 0.5184 MB / 380.2 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.3311, allocations: 169.3 kB / 380.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.3314, allocations: 201.2 kB / 380.6 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.3317, allocations: 214.8 kB / 380.8 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.149e-05/0.3318, allocations: 41.25 kB / 380.8 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.042e-05/0.3319, allocations: 41.34 kB / 380.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.332, allocations: 99.59 kB / 381 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.3322, allocations: 223.9 kB / 381.2 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006545/0.3328, allocations: 499.5 kB / 381.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3329, allocations: 1.688 kB / 381.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3329, allocations: 0 / 381.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.3329, allocations: 0 / 381.7 MB, free: 9.492 MB / 318.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.001313/0.3342, allocations: 0.7675 MB / 382.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.3343, allocations: 16.88 kB / 382.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.3344, allocations: 57.34 kB / 382.5 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.3349, allocations: 377.2 kB / 382.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.343e-05/0.3349, allocations: 29.47 kB / 382.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.175e-05/0.335, allocations: 41.59 kB / 382.9 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008632/0.3359, allocations: 446.3 kB / 383.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.3359, allocations: 11.56 kB / 383.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.336, allocations: 14.41 kB / 383.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.336, allocations: 9.344 kB / 383.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009874/0.337, allocations: 381.3 kB / 383.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.3391, allocations: 1.566 MB / 385.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.3399, allocations: 312.2 kB / 385.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004203/0.3404, allocations: 160.8 kB / 385.8 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.3404, allocations: 7.25 kB / 385.8 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.3404, allocations: 36.58 kB / 385.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.3404, allocations: 0 / 385.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003047/0.3435, allocations: 1.388 MB / 387.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.3436, allocations: 84.55 kB / 387.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003988/0.344, allocations: 362 kB / 387.7 MB, free: 6.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.344, allocations: 32.05 kB / 387.7 MB, free: 6.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.3441, allocations: 242.1 kB / 388 MB, free: 6.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.952e-05/0.3442, allocations: 121.2 kB / 388.1 MB, free: 6.137 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.3444, allocations: 76.19 kB / 388.1 MB, free: 6.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.907e-05/0.3445, allocations: 353 kB / 388.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.3449, allocations: 169.4 kB / 388.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004971/0.3454, allocations: 248.2 kB / 388.9 MB, free: 5.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008967/0.3463, allocations: 397.9 kB / 389.3 MB, free: 5.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3464, allocations: 5.094 kB / 389.3 MB, free: 5.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00112/0.3475, allocations: 494.1 kB / 389.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3475, allocations: 6.609 kB / 389.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.3475, allocations: 2.812 kB / 389.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.3476, allocations: 4.719 kB / 389.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008931/0.3485, allocations: 210.4 kB / 390 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.3499, allocations: 1.579 MB / 391.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.3502, allocations: 38.52 kB / 391.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.3502, allocations: 15.53 kB / 391.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005279/0.3508, allocations: 270.8 kB / 391.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004241/0.3512, allocations: 245.7 kB / 392.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007656/0.352, allocations: 372.2 kB / 392.5 MB, free: 3.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.696e-06/0.352, allocations: 1.062 kB / 392.5 MB, free: 3.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001006/0.353, allocations: 467.7 kB / 393 MB, free: 3.078 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.888e-06/0.353, allocations: 5.062 kB / 393 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.353, allocations: 3.75 kB / 393 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.051e-06/0.353, allocations: 4.344 kB / 393 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.3535, allocations: 118.4 kB / 393.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.3536, allocations: 9 kB / 393.1 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.3539, allocations: 41.55 kB / 393.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.3539, allocations: 19.09 kB / 393.1 MB, free: 3.051 MB / 318.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.0001038/0.354, allocations: 204 kB / 393.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.557e-05/0.3541, allocations: 42.31 kB / 393.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.383e-05/0.3542, allocations: 47.77 kB / 393.4 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3542, allocations: 8.281 kB / 393.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3542, allocations: 4.812 kB / 393.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3542, allocations: 3 kB / 393.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.3559, allocations: 0.918 MB / 394.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3559, allocations: 1.312 kB / 394.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004171/0.3563, allocations: 87.14 kB / 394.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3563, allocations: 2.75 kB / 394.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.3563, allocations: 11.41 kB / 394.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3564, allocations: 3.109 kB / 394.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3564, allocations: 5.406 kB / 394.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.3578, allocations: 0.6635 MB / 395.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.3579, allocations: 136.1 kB / 395.3 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.358, allocations: 8.922 kB / 395.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.3583, allocations: 35.91 kB / 395.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.3584, allocations: 27.58 kB / 395.3 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.3584, allocations: 10.75 kB / 395.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002645/0.3587, allocations: 247.8 kB / 395.6 MB, free: 1.641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3587, allocations: 0 / 395.6 MB, free: 1.641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.3592, allocations: 138.8 kB / 395.7 MB, free: 1.621 MB / 318.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.0001203/0.3594, allocations: 114.8 kB / 395.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.3614, allocations: 0.6925 MB / 396.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3614, allocations: 0 / 396.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.3619, allocations: 176.7 kB / 396.7 MB, free: 1.324 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006779/0.3625, allocations: 99.62 kB / 396.8 MB, free: 1.293 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.3644, allocations: 1.011 MB / 397.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.3648, allocations: 0.8281 MB / 398.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002828/0.3651, allocations: 60.14 kB / 398.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.3652, allocations: 31.38 kB / 398.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3652, allocations: 0 / 398.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of Templates: time 0.01042/0.3757, allocations: 4.737 MB / 403.5 MB, free: 14.52 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches