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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000883/0.000883, allocations: 158.3 kB / 25.45 MB, free: 8.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8362/0.8362, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 299.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.139e-05/3.305e-05, allocations: 2.281 kB / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003478/0.003511, allocations: 2.904 MB / 302.6 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.005234, allocations: 0.9902 MB / 303.6 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000318/0.005552, allocations: 19.81 kB / 303.6 MB, free: 2.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003615/0.005913, allocations: 87.17 kB / 303.7 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.006188, allocations: 111 kB / 303.8 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.006722, allocations: 239.5 kB / 304 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005004/0.007222, allocations: 0.5377 MB / 304.6 MB, free: 2.016 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.007473, allocations: 113.7 kB / 304.7 MB, free: 1.902 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.007716, allocations: 291.2 kB / 305 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001763/0.007892, allocations: 151.5 kB / 305.1 MB, free: 1.469 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.417e-05/0.007947, allocations: 44 kB / 305.2 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.951e-05/0.007986, allocations: 44 kB / 305.2 MB, free: 1.383 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.752e-05/0.008074, allocations: 107.6 kB / 305.3 MB, free: 1.277 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.008176, allocations: 143.6 kB / 305.4 MB, free: 1.137 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004706/0.008646, allocations: 0.5022 MB / 305.9 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.008651, allocations: 3.938 kB / 305.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.008653, allocations: 0 / 305.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.008661, allocations: 0 / 305.9 MB, free: 0.6289 MB / 282.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.0009344/0.009595, allocations: 0.7116 MB / 306.7 MB, free: 15.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.009636, allocations: 15.98 kB / 306.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.009714, allocations: 52.61 kB / 306.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004585/0.01017, allocations: 313.4 kB / 307 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.0102, allocations: 25.38 kB / 307.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.01025, allocations: 40.38 kB / 307.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/0.01083, allocations: 476.6 kB / 307.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.01085, allocations: 8.141 kB / 307.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.01088, allocations: 16.38 kB / 307.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.01089, allocations: 11.94 kB / 307.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005537/0.01144, allocations: 383.6 kB / 308 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.01284, allocations: 1.349 MB / 309.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/0.01339, allocations: 298.7 kB / 309.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.01362, allocations: 152.8 kB / 309.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.01365, allocations: 8 kB / 309.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.01367, allocations: 42.5 kB / 309.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.365e-06/0.01368, allocations: 0 / 309.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001896/0.01557, allocations: 1.228 MB / 311 MB, free: 11.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.01562, allocations: 81.11 kB / 311.1 MB, free: 11.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.01588, allocations: 349.5 kB / 311.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.01591, allocations: 37.64 kB / 311.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.01603, allocations: 248.5 kB / 311.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.315e-05/0.01609, allocations: 123.1 kB / 311.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.164e-05/0.01618, allocations: 82.19 kB / 311.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.01628, allocations: 346.8 kB / 312.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.01654, allocations: 170.7 kB / 312.4 MB, free: 9.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.01683, allocations: 279.1 kB / 312.7 MB, free: 9.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/0.01733, allocations: 391.6 kB / 313.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.01734, allocations: 4 kB / 313.1 MB, free: 9.113 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006067/0.01794, allocations: 497 kB / 313.6 MB, free: 8.621 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.01796, allocations: 11.88 kB / 313.6 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.01797, allocations: 4 kB / 313.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.01799, allocations: 4 kB / 313.6 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/0.01845, allocations: 204 kB / 313.8 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.01953, allocations: 1.446 MB / 315.3 MB, free: 6.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.01969, allocations: 43.92 kB / 315.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.01971, allocations: 12 kB / 315.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003109/0.02002, allocations: 281 kB / 315.6 MB, free: 6.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002641/0.02029, allocations: 267.1 kB / 315.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004376/0.02073, allocations: 371.7 kB / 316.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.02073, allocations: 0 / 316.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005511/0.02128, allocations: 464.9 kB / 316.7 MB, free: 5.379 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.02129, allocations: 11.98 kB / 316.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-06/0.02129, allocations: 0 / 316.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.548e-06/0.0213, allocations: 4 kB / 316.7 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000238/0.02154, allocations: 120.1 kB / 316.8 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.02154, allocations: 11.92 kB / 316.8 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.02168, allocations: 39.95 kB / 316.8 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.0217, allocations: 12 kB / 316.9 MB, free: 5.184 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.0001138/0.02181, allocations: 204.4 kB / 317.1 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.02185, allocations: 39.75 kB / 317.1 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.0219, allocations: 48.14 kB / 317.1 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.02191, allocations: 8 kB / 317.1 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.02191, allocations: 0 / 317.1 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.02191, allocations: 3.984 kB / 317.1 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009572/0.02287, allocations: 0.7935 MB / 317.9 MB, free: 4.035 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.02287, allocations: 4 kB / 317.9 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.0231, allocations: 83.88 kB / 318 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.0231, allocations: 0 / 318 MB, free: 3.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.02311, allocations: 8 kB / 318 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.02312, allocations: 7.938 kB / 318 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.02312, allocations: 3.938 kB / 318 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007715/0.02389, allocations: 0.6826 MB / 318.7 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.172e-05/0.02397, allocations: 59.75 kB / 318.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.024, allocations: 8 kB / 318.8 MB, free: 3.152 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.02414, allocations: 39.89 kB / 318.8 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.0242, allocations: 27.89 kB / 318.9 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.02421, allocations: 8 kB / 318.9 MB, free: 3.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001567/0.02437, allocations: 239.2 kB / 319.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02437, allocations: 0 / 319.1 MB, free: 2.852 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003451/0.02471, allocations: 136 kB / 319.2 MB, free: 2.719 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.0001005/0.02481, allocations: 111.1 kB / 319.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001001/0.02582, allocations: 0.6563 MB / 320 MB, free: 1.945 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.02582, allocations: 0 / 320 MB, free: 1.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002486/0.02607, allocations: 183.7 kB / 320.2 MB, free: 1.766 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.02651, allocations: 94.34 kB / 320.3 MB, free: 1.672 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.02773, allocations: 0.9475 MB / 321.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.02787, allocations: 216.2 kB / 321.4 MB, free: 456 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.997e-05/0.02796, allocations: 32.5 kB / 321.5 MB, free: 424 kB / 298.7 MB Notification: Performance of SimCode: time 1.001e-06/0.02796, allocations: 0 / 321.5 MB, free: 424 kB / 298.7 MB Notification: Performance of Templates: time 0.006098/0.03406, allocations: 6.129 MB / 327.6 MB, free: 10.28 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.008392641320825]