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.002327/0.002327, allocations: 110 kB / 20.43 MB, free: 1.453 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.002416/0.002416, allocations: 213.9 kB / 23.74 MB, free: 4.66 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 2.143/2.143, allocations: 230.5 MB / 257.4 MB, free: 7.984 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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 59.91 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2839, allocations: 53.4 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004727/0.2886, allocations: 3.168 MB / 434.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.2905, allocations: 1.009 MB / 435.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002186/0.2908, allocations: 15.88 kB / 435.4 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003555/0.2911, allocations: 87.17 kB / 435.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.2914, allocations: 107.1 kB / 435.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006005/0.292, allocations: 242.9 kB / 435.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006081/0.2926, allocations: 0.5185 MB / 436.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.2928, allocations: 129.7 kB / 436.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.2931, allocations: 195.2 kB / 436.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002869/0.2934, allocations: 210.9 kB / 436.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.997e-05/0.2935, allocations: 44 kB / 436.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.862e-05/0.2935, allocations: 40 kB / 436.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.2937, allocations: 111.6 kB / 437 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.2939, allocations: 210.8 kB / 437.2 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006078/0.2945, allocations: 0.4982 MB / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2945, allocations: 0 / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2945, allocations: 4 kB / 437.7 MB, free: 104 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2945, allocations: 4 kB / 437.7 MB, free: 100 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.001385/0.2959, allocations: 0.6962 MB / 438.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.2959, allocations: 12.03 kB / 438.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.296, allocations: 74.66 kB / 438.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.463e-05/0.2961, allocations: 56.61 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.2967, allocations: 302.2 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.628e-05/0.2967, allocations: 29.38 kB / 438.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.778e-05/0.2968, allocations: 40.36 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009247/0.2977, allocations: 455.3 kB / 439.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.653e-05/0.2978, allocations: 11.94 kB / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.2978, allocations: 16 kB / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2978, allocations: 8 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.2988, allocations: 383.5 kB / 439.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.301, allocations: 1.488 MB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008246/0.3019, allocations: 306.2 kB / 441.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.3023, allocations: 160.7 kB / 441.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.3023, allocations: 4 kB / 441.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.3024, allocations: 38.55 kB / 441.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.094e-06/0.3024, allocations: 0 / 441.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003166/0.3055, allocations: 1.244 MB / 443 MB, free: 10.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.458e-05/0.3056, allocations: 106.8 kB / 443.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004197/0.3061, allocations: 353.6 kB / 443.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.3061, allocations: 33.7 kB / 443.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.3063, allocations: 244.3 kB / 443.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.3064, allocations: 123.1 kB / 443.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.3065, allocations: 78.12 kB / 443.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.3067, allocations: 354.7 kB / 444.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004605/0.3071, allocations: 170.5 kB / 444.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/0.3077, allocations: 261.6 kB / 444.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008857/0.3085, allocations: 395.3 kB / 445.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3085, allocations: 0 / 445.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00111/0.3097, allocations: 497.3 kB / 445.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.3097, allocations: 8 kB / 445.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3097, allocations: 0 / 445.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3097, allocations: 4 kB / 445.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008936/0.3106, allocations: 211.9 kB / 445.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/0.3123, allocations: 1.469 MB / 447.3 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.3127, allocations: 48.08 kB / 447.3 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.3127, allocations: 16 kB / 447.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000537/0.3132, allocations: 276.8 kB / 447.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004774/0.3137, allocations: 241.6 kB / 447.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008412/0.3145, allocations: 371.4 kB / 448.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.763e-06/0.3145, allocations: 4 kB / 448.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001016/0.3156, allocations: 469.4 kB / 448.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.3156, allocations: 14.22 kB / 448.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.3156, allocations: 0 / 448.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.025e-06/0.3156, allocations: 7.984 kB / 448.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.3161, allocations: 119.8 kB / 448.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.3161, allocations: 4 kB / 448.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.3164, allocations: 35.95 kB / 448.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3164, allocations: 23.94 kB / 448.9 MB, free: 4.402 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.0001806/0.3166, allocations: 199.2 kB / 449.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.3167, allocations: 47.72 kB / 449.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.947e-05/0.3168, allocations: 48.12 kB / 449.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3168, allocations: 7.984 kB / 449.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.3168, allocations: 0 / 449.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3168, allocations: 3.984 kB / 449.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.3185, allocations: 0.8912 MB / 450 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3185, allocations: 0 / 450 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004235/0.319, allocations: 83.88 kB / 450.1 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.319, allocations: 4 kB / 450.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.319, allocations: 8 kB / 450.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.319, allocations: 4 kB / 450.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.319, allocations: 3.984 kB / 450.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.3204, allocations: 0.6749 MB / 450.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.3206, allocations: 55.75 kB / 450.9 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.3206, allocations: 12 kB / 450.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.3209, allocations: 39.95 kB / 450.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/0.321, allocations: 23.95 kB / 451 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.321, allocations: 11.94 kB / 451 MB, free: 2.195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.3213, allocations: 251.1 kB / 451.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3213, allocations: 0 / 451.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005968/0.3219, allocations: 132 kB / 451.3 MB, free: 1.824 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.00184/0.3238, allocations: 1.216 MB / 452.6 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.3257, allocations: 0.6567 MB / 453.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3257, allocations: 0 / 453.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004708/0.3261, allocations: 184.4 kB / 453.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006576/0.3268, allocations: 101 kB / 453.5 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006631/0.3334, allocations: 4.002 MB / 457.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.334, allocations: 0.8273 MB / 458.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002618/0.3343, allocations: 59.23 kB / 458.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.3345, allocations: 139.4 kB / 458.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3345, allocations: 0 / 458.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04013/0.3746, allocations: 9.055 MB / 467.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.38, allocations: 6.594 kB / 467.6 MB, free: 1.496 MB / 366.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798085 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv","/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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertia1.w in file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv. Warning: Get data of variable inertia1.w from file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv failed! Error: Could not read variable spring.w_rel in file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv. Warning: Get data of variable spring.w_rel from file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.685638149003353]