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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001572/0.001572, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.553/1.553, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] 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=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 75.88 kB / 373.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1069, allocations: 53.32 MB / 427.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004847/0.1117, allocations: 3.132 MB / 430.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002113/0.1138, allocations: 1.005 MB / 431.3 MB, free: 344 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003511/0.1142, allocations: 11.94 kB / 431.3 MB, free: 332 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004126/0.1146, allocations: 87.17 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003465/0.1149, allocations: 103.1 kB / 431.5 MB, free: 140 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.21/0.325, allocations: 226.8 kB / 431.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008265/0.3258, allocations: 0.5123 MB / 432.2 MB, free: 8.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.3261, allocations: 124.7 kB / 432.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.3263, allocations: 201.5 kB / 432.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.3265, allocations: 203.1 kB / 432.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.867e-05/0.3266, allocations: 41.31 kB / 432.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.3267, allocations: 41.75 kB / 432.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.3268, allocations: 109.5 kB / 432.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.327, allocations: 215.8 kB / 433.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004887/0.3274, allocations: 0.4916 MB / 433.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3274, allocations: 4.562 kB / 433.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3274, allocations: 0 / 433.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.3275, allocations: 0.8438 kB / 433.6 MB, free: 7.816 MB / 350.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.001189/0.3287, allocations: 0.7778 MB / 434.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.3287, allocations: 9.594 kB / 434.4 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.397e-05/0.3288, allocations: 57.86 kB / 434.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.3292, allocations: 373.3 kB / 434.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.3293, allocations: 28.81 kB / 434.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.261e-05/0.3293, allocations: 40.44 kB / 434.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008681/0.3302, allocations: 456.1 kB / 435.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.3302, allocations: 9.391 kB / 435.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.3303, allocations: 14.25 kB / 435.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.3303, allocations: 8.938 kB / 435.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009897/0.3313, allocations: 379 kB / 435.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.3333, allocations: 1.571 MB / 437.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008542/0.3341, allocations: 295.2 kB / 437.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.3346, allocations: 156 kB / 437.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.245e-05/0.3346, allocations: 4.875 kB / 437.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.003e-05/0.3346, allocations: 41.66 kB / 437.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.3346, allocations: 4 kB / 437.8 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.00331/0.3379, allocations: 1.39 MB / 439.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.338, allocations: 106.8 kB / 439.3 MB, free: 5.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003916/0.3384, allocations: 358.2 kB / 439.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.3384, allocations: 31.95 kB / 439.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.3385, allocations: 253.6 kB / 439.9 MB, free: 4.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.77e-05/0.3386, allocations: 115.9 kB / 440.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.3387, allocations: 76.94 kB / 440.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.112e-05/0.3388, allocations: 348.5 kB / 440.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004934/0.3393, allocations: 172.7 kB / 440.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005277/0.3398, allocations: 257.4 kB / 440.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009029/0.3407, allocations: 396.3 kB / 441.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3407, allocations: 3.938 kB / 441.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001129/0.3419, allocations: 493 kB / 441.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.3419, allocations: 6.375 kB / 441.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3419, allocations: 4.297 kB / 441.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.3419, allocations: 8.562 kB / 441.8 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009344/0.3428, allocations: 207.3 kB / 442 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/0.3444, allocations: 1.572 MB / 443.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004079/0.3448, allocations: 39.16 kB / 443.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.3448, allocations: 15.75 kB / 443.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000556/0.3454, allocations: 271 kB / 443.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004917/0.3459, allocations: 243.9 kB / 444.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008433/0.3467, allocations: 376.9 kB / 444.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.545e-06/0.3467, allocations: 1 kB / 444.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001112/0.3478, allocations: 474.2 kB / 444.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.3479, allocations: 6.594 kB / 444.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3479, allocations: 3.906 kB / 445 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.383e-06/0.3479, allocations: 4.766 kB / 445 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005328/0.3484, allocations: 122.9 kB / 445.1 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.3484, allocations: 10.12 kB / 445.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.3488, allocations: 36.78 kB / 445.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.3488, allocations: 11.92 kB / 445.1 MB, free: 1.539 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.0001553/0.3489, allocations: 206.9 kB / 445.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.349, allocations: 42.25 kB / 445.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.3491, allocations: 50.58 kB / 445.4 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.3491, allocations: 12.03 kB / 445.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.3492, allocations: 1.031 kB / 445.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.3492, allocations: 1.781 kB / 445.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.3511, allocations: 0.9167 MB / 446.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3511, allocations: 2.438 kB / 446.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.3515, allocations: 83.09 kB / 446.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3515, allocations: 2.406 kB / 446.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.3516, allocations: 12.09 kB / 446.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.3516, allocations: 3.016 kB / 446.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.3516, allocations: 5.062 kB / 446.5 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.353, allocations: 0.6732 MB / 447.1 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3532, allocations: 136.9 kB / 447.3 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.3532, allocations: 7.922 kB / 447.3 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.3535, allocations: 36.34 kB / 447.3 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.905e-05/0.3536, allocations: 24.39 kB / 447.3 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.3536, allocations: 11.42 kB / 447.3 MB, free: 248 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.3539, allocations: 249.4 kB / 447.6 MB, free: 116 kB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3539, allocations: 4 kB / 447.6 MB, free: 112 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.3545, allocations: 133.2 kB / 447.7 MB, free: 96 kB / 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.0001743/0.3547, allocations: 107.4 kB / 447.8 MB, free: 16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.357, allocations: 0.6641 MB / 448.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.357, allocations: 0 / 448.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004845/0.3575, allocations: 175.5 kB / 448.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006674/0.3581, allocations: 106.6 kB / 448.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.3604, allocations: 1.023 MB / 449.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005742/0.361, allocations: 0.8234 MB / 450.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002947/0.3613, allocations: 61.17 kB / 450.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.3614, allocations: 29.53 kB / 450.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3614, allocations: 1.281 kB / 450.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of Templates: time 0.0112/0.3726, allocations: 4.738 MB / 455.4 MB, free: 13.42 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.849926955066621]