Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.694/1.694, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 51.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2235, allocations: 52.19 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004642/0.2281, allocations: 3.148 MB / 426.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.2299, allocations: 0.9739 MB / 427.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.23, allocations: 23.75 kB / 427.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003369/0.2304, allocations: 87.17 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.2306, allocations: 115.1 kB / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005165/0.2311, allocations: 231.5 kB / 428 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005798/0.2317, allocations: 0.5301 MB / 428.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.2319, allocations: 117.7 kB / 428.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.2322, allocations: 207.2 kB / 428.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.2324, allocations: 207 kB / 429 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.2325, allocations: 43.94 kB / 429.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.969e-05/0.2326, allocations: 47.94 kB / 429.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2327, allocations: 99.67 kB / 429.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.2329, allocations: 214.8 kB / 429.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005253/0.2334, allocations: 0.4947 MB / 429.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2334, allocations: 0 / 429.9 MB, free: 8.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2334, allocations: 4 kB / 429.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2334, allocations: 0 / 429.9 MB, free: 8.094 MB / 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.00127/0.2347, allocations: 0.7116 MB / 430.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2347, allocations: 8.031 kB / 430.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.822e-05/0.2347, allocations: 13.19 kB / 430.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.612e-05/0.2348, allocations: 70.72 kB / 430.7 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.376e-05/0.2349, allocations: 52.61 kB / 430.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005157/0.2354, allocations: 310.1 kB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.2354, allocations: 32.94 kB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.531e-05/0.2355, allocations: 39.95 kB / 431.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000875/0.2364, allocations: 446.3 kB / 431.6 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.2364, allocations: 8 kB / 431.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.2365, allocations: 12 kB / 431.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2365, allocations: 8 kB / 431.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000984/0.2374, allocations: 379.6 kB / 432 MB, free: 5.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.2396, allocations: 1.503 MB / 433.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007787/0.2403, allocations: 302.8 kB / 433.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004276/0.2408, allocations: 160.7 kB / 433.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.2408, allocations: 4.5 kB / 433.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2408, allocations: 38.56 kB / 434 MB, free: 3.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.382e-06/0.2408, allocations: 0 / 434 MB, free: 3.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003156/0.244, allocations: 1.228 MB / 435.2 MB, free: 2.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.244, allocations: 81.11 kB / 435.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.2444, allocations: 353.6 kB / 435.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.2444, allocations: 37.7 kB / 435.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.2446, allocations: 240.3 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.2447, allocations: 123 kB / 436 MB, free: 1.695 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.2448, allocations: 78.12 kB / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.245, allocations: 354.7 kB / 436.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004653/0.2455, allocations: 174.5 kB / 436.6 MB, free: 1.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005224/0.246, allocations: 248.8 kB / 436.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009221/0.2469, allocations: 391.7 kB / 437.2 MB, free: 408 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2469, allocations: 4 kB / 437.2 MB, free: 404 kB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001191/0.2481, allocations: 497 kB / 437.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2481, allocations: 7.281 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2482, allocations: 4 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2482, allocations: 4 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008762/0.249, allocations: 215.8 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.2507, allocations: 1.466 MB / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.2511, allocations: 44.05 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.2511, allocations: 12 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005357/0.2516, allocations: 272.9 kB / 439.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004671/0.2521, allocations: 236.8 kB / 440 MB, free: 13.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007931/0.2529, allocations: 363.7 kB / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.503e-06/0.2529, allocations: 4 kB / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009926/0.2539, allocations: 473.1 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2539, allocations: 15.94 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2539, allocations: 0 / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.085e-06/0.2539, allocations: 7.984 kB / 440.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.2544, allocations: 119.8 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2544, allocations: 4 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002903/0.2547, allocations: 35.95 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.2547, allocations: 20 kB / 441 MB, free: 12.46 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.0001684/0.2549, allocations: 212.3 kB / 441.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.728e-05/0.2549, allocations: 39.7 kB / 441.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.903e-05/0.255, allocations: 44.25 kB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.255, allocations: 4 kB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.255, allocations: 0 / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2551, allocations: 3.984 kB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.2567, allocations: 0.8923 MB / 442.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2567, allocations: 0 / 442.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.2571, allocations: 83.88 kB / 442.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2571, allocations: 0 / 442.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.2572, allocations: 12 kB / 442.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.2572, allocations: 7.984 kB / 442.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2572, allocations: 0 / 442.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.2586, allocations: 0.6752 MB / 443 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.2587, allocations: 67.75 kB / 443 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.655e-05/0.2588, allocations: 12.06 kB / 443 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.2591, allocations: 35.95 kB / 443.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.321e-05/0.2591, allocations: 31.89 kB / 443.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.2591, allocations: 8 kB / 443.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002621/0.2594, allocations: 247.2 kB / 443.4 MB, free: 10 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2594, allocations: 0 / 443.4 MB, free: 10 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005093/0.2599, allocations: 136 kB / 443.5 MB, free: 9.871 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.001765/0.2617, allocations: 1.219 MB / 444.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.2636, allocations: 0.6605 MB / 445.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2636, allocations: 0 / 445.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.2641, allocations: 180.4 kB / 445.5 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006455/0.2647, allocations: 102.4 kB / 445.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006347/0.2711, allocations: 4.01 MB / 449.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.2715, allocations: 0.8234 MB / 450.5 MB, free: 2.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002407/0.2718, allocations: 59.25 kB / 450.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.272, allocations: 143.4 kB / 450.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.272, allocations: 4 kB / 450.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.3051, allocations: 9.116 MB / 459.8 MB, free: 9.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.49, allocations: 10.75 kB / 459.8 MB, free: 9.516 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.310699313005898]