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.002894/0.002894, allocations: 101.5 kB / 21.21 MB, free: 0.5078 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.001399/0.001399, allocations: 191.6 kB / 24.49 MB, free: 3.711 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.649/1.649, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.001555/0.001555, allocations: 47.92 kB / 371.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2213, allocations: 52.18 MB / 423.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004456/0.2257, allocations: 2.899 MB / 426.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.228, allocations: 0.9311 MB / 427.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003491/0.2284, allocations: 19.88 kB / 427.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004515/0.2288, allocations: 87.17 kB / 427.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.2291, allocations: 107.1 kB / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006839/0.2298, allocations: 223.7 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006977/0.2305, allocations: 0.53 MB / 428.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003243/0.2308, allocations: 121.7 kB / 428.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002843/0.2311, allocations: 203.2 kB / 428.5 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003233/0.2314, allocations: 203 kB / 428.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.691e-05/0.2315, allocations: 44 kB / 428.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.249e-05/0.2316, allocations: 44 kB / 428.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.2317, allocations: 115.5 kB / 428.8 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002076/0.2319, allocations: 175.1 kB / 429 MB, free: 8.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006963/0.2326, allocations: 0.4962 MB / 429.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.2326, allocations: 0 / 429.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2326, allocations: 0 / 429.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.2326, allocations: 0 / 429.5 MB, free: 8.223 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.001461/0.2341, allocations: 0.7077 MB / 430.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.2342, allocations: 12.03 kB / 430.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.58e-05/0.2342, allocations: 13.12 kB / 430.2 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.661e-05/0.2343, allocations: 70.72 kB / 430.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.336e-05/0.2344, allocations: 52.61 kB / 430.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.2349, allocations: 314.1 kB / 430.7 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.235, allocations: 32.94 kB / 430.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.075e-05/0.235, allocations: 43.94 kB / 430.8 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000953/0.236, allocations: 480 kB / 431.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.236, allocations: 0 / 431.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.638e-05/0.2361, allocations: 16 kB / 431.2 MB, free: 6.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.2361, allocations: 8 kB / 431.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000951/0.237, allocations: 379.6 kB / 431.6 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.2392, allocations: 1.433 MB / 433 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008313/0.2401, allocations: 297.1 kB / 433.3 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.2405, allocations: 156.8 kB / 433.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.2405, allocations: 4.5 kB / 433.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.2405, allocations: 34.56 kB / 433.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.2405, allocations: 0 / 433.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003112/0.2436, allocations: 1.22 MB / 434.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.2437, allocations: 89.05 kB / 434.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004194/0.2441, allocations: 361.6 kB / 435.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.2442, allocations: 29.7 kB / 435.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.2443, allocations: 244.3 kB / 435.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.703e-05/0.2444, allocations: 123.1 kB / 435.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.2446, allocations: 82.12 kB / 435.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2447, allocations: 350.7 kB / 436 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004463/0.2452, allocations: 174.5 kB / 436.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.2457, allocations: 278.5 kB / 436.4 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008562/0.2466, allocations: 391.7 kB / 436.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2466, allocations: 0 / 436.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001064/0.2476, allocations: 496.9 kB / 437.3 MB, free: 40 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.2476, allocations: 8 kB / 437.3 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2476, allocations: 0 / 437.3 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.2477, allocations: 4 kB / 437.3 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008634/0.2485, allocations: 211.9 kB / 437.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.2502, allocations: 1.469 MB / 439 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.2505, allocations: 35.89 kB / 439 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.9e-05/0.2505, allocations: 16 kB / 439 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005249/0.251, allocations: 277 kB / 439.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000459/0.2515, allocations: 262.5 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007757/0.2523, allocations: 367.7 kB / 439.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.204e-06/0.2523, allocations: 0 / 439.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009714/0.2533, allocations: 481 kB / 440.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.2533, allocations: 11.94 kB / 440.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-06/0.2533, allocations: 0 / 440.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.64e-06/0.2533, allocations: 4.219 kB / 440.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004944/0.2538, allocations: 123.8 kB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.2538, allocations: 4 kB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.2541, allocations: 35.95 kB / 440.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.2541, allocations: 16 kB / 440.6 MB, free: 12.57 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.0001768/0.2543, allocations: 204.4 kB / 440.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.196e-05/0.2543, allocations: 47.64 kB / 440.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.2544, allocations: 52.23 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.2545, allocations: 4 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2545, allocations: 0 / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2545, allocations: 0 / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.2561, allocations: 0.8416 MB / 441.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2561, allocations: 0 / 441.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.2565, allocations: 87.88 kB / 441.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.2565, allocations: 4 kB / 441.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.2565, allocations: 4 kB / 441.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2565, allocations: 7.938 kB / 441.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2565, allocations: 4.125 kB / 441.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.2579, allocations: 0.679 MB / 442.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.258, allocations: 59.75 kB / 442.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.2581, allocations: 12 kB / 442.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.2583, allocations: 31.95 kB / 442.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/0.2584, allocations: 27.89 kB / 442.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.879e-05/0.2584, allocations: 8 kB / 442.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002829/0.2587, allocations: 255.2 kB / 442.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2587, allocations: 4 kB / 442.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005398/0.2593, allocations: 136 kB / 443 MB, free: 10.02 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.001695/0.261, allocations: 1.219 MB / 444.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.2627, allocations: 0.6525 MB / 444.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.2627, allocations: 4 kB / 444.9 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.2632, allocations: 180.4 kB / 445.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006437/0.2638, allocations: 103.4 kB / 445.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006196/0.27, allocations: 4.023 MB / 449.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.2702, allocations: 216.2 kB / 449.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.2705, allocations: 67.22 kB / 449.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.2707, allocations: 135.4 kB / 449.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2707, allocations: 3.938 kB / 449.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.305, allocations: 9.386 MB / 459 MB, free: 10.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.64, allocations: 15.22 kB / 459 MB, free: 10.05 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.4160214739386]