Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001396/0.001396, allocations: 119.6 kB / 20.44 MB, free: 1.301 MB / 14.72 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.001608/0.001608, allocations: 214.5 kB / 23.74 MB, free: 4.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001698, allocations: 43.94 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.2511, allocations: 53.36 MB / 431.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005391/0.2565, allocations: 3.164 MB / 434.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002976/0.2595, allocations: 1.013 MB / 435.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004829/0.26, allocations: 19.88 kB / 435.3 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004887/0.2605, allocations: 87.17 kB / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004754/0.2609, allocations: 103.1 kB / 435.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009537/0.2619, allocations: 247.5 kB / 435.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001039/0.2629, allocations: 0.5107 MB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003755/0.2633, allocations: 125.7 kB / 436.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003931/0.2637, allocations: 203.2 kB / 436.6 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003645/0.2641, allocations: 214.9 kB / 436.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.334e-05/0.2641, allocations: 40 kB / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.15e-05/0.2642, allocations: 48 kB / 436.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.2644, allocations: 99.62 kB / 437 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.2646, allocations: 214.8 kB / 437.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007512/0.2654, allocations: 0.4943 MB / 437.7 MB, free: 232 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2654, allocations: 0 / 437.7 MB, free: 232 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2654, allocations: 0 / 437.7 MB, free: 232 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.2654, allocations: 0 / 437.7 MB, free: 232 kB / 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.001679/0.2671, allocations: 0.704 MB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2671, allocations: 12.03 kB / 438.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.976e-05/0.2672, allocations: 74.72 kB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.2673, allocations: 56.55 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006215/0.2679, allocations: 306.2 kB / 438.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.268, allocations: 25.38 kB / 438.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-05/0.2681, allocations: 40.38 kB / 438.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.2691, allocations: 455.3 kB / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.2691, allocations: 3.953 kB / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.2691, allocations: 19.94 kB / 439.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.2691, allocations: 16 kB / 439.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.2702, allocations: 375.6 kB / 439.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.2726, allocations: 1.492 MB / 441.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000857/0.2734, allocations: 303.4 kB / 441.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000443/0.2739, allocations: 156.7 kB / 441.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.445e-05/0.2739, allocations: 7.984 kB / 441.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.2739, allocations: 38.56 kB / 441.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.894e-06/0.2739, allocations: 0 / 441.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003302/0.2772, allocations: 1.239 MB / 443 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.213e-05/0.2773, allocations: 110.8 kB / 443.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004591/0.2778, allocations: 353.6 kB / 443.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.2778, allocations: 37.7 kB / 443.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/0.278, allocations: 252.4 kB / 443.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.2781, allocations: 115 kB / 443.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.2783, allocations: 78.12 kB / 443.9 MB, free: 9.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.2785, allocations: 350.7 kB / 444.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004939/0.279, allocations: 182.5 kB / 444.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005421/0.2795, allocations: 253.6 kB / 444.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009588/0.2805, allocations: 387.4 kB / 445 MB, free: 8.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2805, allocations: 0 / 445 MB, free: 8.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0012/0.2817, allocations: 0.4895 MB / 445.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.2817, allocations: 8 kB / 445.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.2817, allocations: 8.203 kB / 445.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.2817, allocations: 4 kB / 445.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009099/0.2826, allocations: 207.7 kB / 445.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.2844, allocations: 1.465 MB / 447.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.2848, allocations: 35.95 kB / 447.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.2848, allocations: 16 kB / 447.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005812/0.2854, allocations: 277 kB / 447.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004985/0.2859, allocations: 249.5 kB / 447.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008374/0.2867, allocations: 371.5 kB / 448.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.134e-06/0.2867, allocations: 0 / 448.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001065/0.2878, allocations: 477.2 kB / 448.6 MB, free: 4.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.2878, allocations: 4 kB / 448.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2878, allocations: 4 kB / 448.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.242e-06/0.2878, allocations: 4 kB / 448.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005306/0.2884, allocations: 124 kB / 448.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.2884, allocations: 7.984 kB / 448.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.2887, allocations: 31.97 kB / 448.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.2887, allocations: 19.94 kB / 448.8 MB, free: 4.531 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.000171/0.2889, allocations: 205.8 kB / 449 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.88e-05/0.289, allocations: 39.72 kB / 449 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.2891, allocations: 60.17 kB / 449.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2891, allocations: 4 kB / 449.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.2891, allocations: 0 / 449.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2891, allocations: 0 / 449.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.2909, allocations: 0.8833 MB / 450 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2909, allocations: 4 kB / 450 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004489/0.2913, allocations: 91.86 kB / 450.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2913, allocations: 128 / 450.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.2914, allocations: 12 kB / 450.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.2914, allocations: 4 kB / 450.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2914, allocations: 0 / 450.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.2929, allocations: 0.6716 MB / 450.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.293, allocations: 71.72 kB / 450.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.267e-05/0.2931, allocations: 8 kB / 450.8 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.2934, allocations: 31.97 kB / 450.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.129e-05/0.2935, allocations: 23.95 kB / 450.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.2935, allocations: 11.94 kB / 450.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000308/0.2938, allocations: 255.1 kB / 451.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2938, allocations: 4 kB / 451.2 MB, free: 2.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005628/0.2944, allocations: 136 kB / 451.3 MB, free: 1.938 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.00183/0.2962, allocations: 1.208 MB / 452.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001942/0.2982, allocations: 0.6608 MB / 453.2 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2982, allocations: 0 / 453.2 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004903/0.2987, allocations: 179.7 kB / 453.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000712/0.2994, allocations: 102.7 kB / 453.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006716/0.3061, allocations: 4.014 MB / 457.5 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.3066, allocations: 0.8156 MB / 458.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000277/0.3069, allocations: 67.23 kB / 458.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.3071, allocations: 147.4 kB / 458.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3071, allocations: 0 / 458.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04582/0.3529, allocations: 9.044 MB / 467.5 MB, free: 1.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/13.7, allocations: 4.703 kB / 467.5 MB, free: 1.66 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 16.244672521948814]