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.001858/0.001858, allocations: 108.5 kB / 21.18 MB, free: 0.6992 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.001657/0.001657, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 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 1.568/1.568, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 59.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2819, allocations: 49.15 MB / 396.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003933/0.2858, allocations: 3.162 MB / 399.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2876, allocations: 1.023 MB / 400.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002692/0.2878, allocations: 22.44 kB / 400.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.2882, allocations: 86.84 kB / 400.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.2884, allocations: 108.3 kB / 400.7 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005277/0.2889, allocations: 243 kB / 401 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005501/0.2895, allocations: 0.5264 MB / 401.5 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.2897, allocations: 126.2 kB / 401.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.29, allocations: 205.7 kB / 401.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.2903, allocations: 206 kB / 402 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.629e-05/0.2904, allocations: 40.56 kB / 402.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.366e-05/0.2904, allocations: 41.75 kB / 402.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.2905, allocations: 111.2 kB / 402.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.2907, allocations: 223.5 kB / 402.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000584/0.2913, allocations: 0.4914 MB / 402.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2913, allocations: 0 / 402.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2913, allocations: 1.312 kB / 402.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.2913, allocations: 0 / 402.9 MB, free: 4.766 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.001137/0.2925, allocations: 0.705 MB / 403.6 MB, free: 4.266 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2925, allocations: 13.89 kB / 403.6 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.469e-05/0.2926, allocations: 75.36 kB / 403.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.782e-05/0.2926, allocations: 54.81 kB / 403.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.2931, allocations: 311.7 kB / 404.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.2931, allocations: 28.78 kB / 404.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.066e-05/0.2932, allocations: 41.66 kB / 404.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008044/0.294, allocations: 453.6 kB / 404.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.294, allocations: 6.109 kB / 404.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.2941, allocations: 16.48 kB / 404.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2941, allocations: 9.188 kB / 404.6 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2951, allocations: 379.5 kB / 405 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.2974, allocations: 1.5 MB / 406.5 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009453/0.2983, allocations: 296.3 kB / 406.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004577/0.2988, allocations: 159.3 kB / 406.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.2988, allocations: 4.125 kB / 406.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.2988, allocations: 36.62 kB / 407 MB, free: 2.281 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.2988, allocations: 4 kB / 407 MB, free: 2.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003167/0.302, allocations: 1.245 MB / 408.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.3021, allocations: 81.52 kB / 408.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.3024, allocations: 354.2 kB / 408.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.3025, allocations: 31.08 kB / 408.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.3026, allocations: 251.6 kB / 408.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.21e-05/0.3027, allocations: 123.4 kB / 409 MB, free: 1.035 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.3028, allocations: 80 kB / 409.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.712e-05/0.3028, allocations: 357.2 kB / 409.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/0.3033, allocations: 172.2 kB / 409.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.3038, allocations: 249.6 kB / 409.9 MB, free: 468 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008528/0.3046, allocations: 397.4 kB / 410.3 MB, free: 264 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3046, allocations: 0 / 410.3 MB, free: 264 kB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001083/0.3057, allocations: 499.3 kB / 410.8 MB, free: 72 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3057, allocations: 6.156 kB / 410.8 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3057, allocations: 2.125 kB / 410.8 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.3057, allocations: 4.781 kB / 410.8 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008799/0.3066, allocations: 208.8 kB / 411 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001891/0.3085, allocations: 1.477 MB / 412.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/0.309, allocations: 40.03 kB / 412.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.309, allocations: 22.67 kB / 412.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005688/0.3096, allocations: 267.9 kB / 412.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004769/0.31, allocations: 239.8 kB / 413 MB, free: 14.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007983/0.3108, allocations: 377.3 kB / 413.4 MB, free: 14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.773e-06/0.3108, allocations: 0 / 413.4 MB, free: 14 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001025/0.3119, allocations: 468.5 kB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.3119, allocations: 6.906 kB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.3119, allocations: 1.812 kB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.933e-06/0.3119, allocations: 4 kB / 413.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/0.3123, allocations: 124.6 kB / 414 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3124, allocations: 6.688 kB / 414 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.3126, allocations: 37.03 kB / 414 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.3127, allocations: 14.44 kB / 414 MB, free: 13.7 MB / 334.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.000197/0.3129, allocations: 203.4 kB / 414.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-05/0.3129, allocations: 37.83 kB / 414.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.3131, allocations: 50.19 kB / 414.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3131, allocations: 3.906 kB / 414.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3131, allocations: 7.938 kB / 414.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.3131, allocations: 1.219 kB / 414.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.3148, allocations: 0.8911 MB / 415.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3148, allocations: 1.062 kB / 415.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004915/0.3153, allocations: 86.5 kB / 415.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.3153, allocations: 2.125 kB / 415.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.3153, allocations: 7.312 kB / 415.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.3153, allocations: 7.125 kB / 415.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3153, allocations: 5.156 kB / 415.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.3168, allocations: 0.6724 MB / 416 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.317, allocations: 62.61 kB / 416.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.317, allocations: 11.22 kB / 416.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.3173, allocations: 34.2 kB / 416.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.3174, allocations: 29.08 kB / 416.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.3174, allocations: 10.56 kB / 416.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003009/0.3177, allocations: 252.3 kB / 416.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3177, allocations: 0 / 416.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006082/0.3183, allocations: 135.5 kB / 416.5 MB, free: 12.03 MB / 334.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.001851/0.3202, allocations: 1.218 MB / 417.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.3222, allocations: 0.6618 MB / 418.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3222, allocations: 4 kB / 418.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004532/0.3226, allocations: 172.4 kB / 418.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000673/0.3233, allocations: 118.2 kB / 418.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006627/0.3299, allocations: 4.027 MB / 422.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/0.3304, allocations: 0.8149 MB / 423.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003/0.3307, allocations: 64.92 kB / 423.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.331, allocations: 141.5 kB / 423.7 MB, free: 6.898 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.331, allocations: 1.156 kB / 423.7 MB, free: 6.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04468/0.3757, allocations: 9.137 MB / 432.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/13.85, allocations: 8 kB / 432.9 MB, free: 13.87 MB / 350.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/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: 16.600868239067495]