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.001842/0.001842, allocations: 127.4 kB / 17.79 MB, free: 5.242 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.002212/0.002212, allocations: 211.6 kB / 20.75 MB, free: 2.293 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 1.446/1.446, allocations: 230.4 MB / 254 MB, free: 15.02 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.001836/0.001836, allocations: 55.91 kB / 373 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.09836, allocations: 53.38 MB / 426.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004559/0.1029, allocations: 3.136 MB / 429.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1049, allocations: 0.997 MB / 430.5 MB, free: 476 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002496/0.1051, allocations: 23.81 kB / 430.5 MB, free: 452 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.1055, allocations: 87.22 kB / 430.6 MB, free: 364 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.1057, allocations: 103.1 kB / 430.7 MB, free: 260 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005665/0.1063, allocations: 242.1 kB / 430.9 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1874/0.2936, allocations: 0.5091 MB / 431.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.294, allocations: 121.5 kB / 431.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003049/0.2943, allocations: 208.2 kB / 431.8 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.2946, allocations: 207.4 kB / 432 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.981e-05/0.2946, allocations: 41.22 kB / 432 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.788e-05/0.2947, allocations: 41.19 kB / 432 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.2948, allocations: 108.4 kB / 432.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.295, allocations: 210.9 kB / 432.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000602/0.2956, allocations: 0.5028 MB / 432.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2956, allocations: 0.5938 kB / 432.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2956, allocations: 0.8438 kB / 432.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.2956, allocations: 0 / 432.9 MB, free: 7.363 MB / 350.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.001254/0.2969, allocations: 0.7752 MB / 433.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2969, allocations: 10.53 kB / 433.6 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.095e-05/0.297, allocations: 70.2 kB / 433.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.146e-05/0.2971, allocations: 55.45 kB / 433.8 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004753/0.2976, allocations: 375.2 kB / 434.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.2976, allocations: 27 kB / 434.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.119e-05/0.2977, allocations: 41.16 kB / 434.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009016/0.2986, allocations: 461.7 kB / 434.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.2986, allocations: 5.141 kB / 434.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.2986, allocations: 17.22 kB / 434.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.2986, allocations: 8.75 kB / 434.7 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.2997, allocations: 380 kB / 435.1 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.3019, allocations: 1.563 MB / 436.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009275/0.3028, allocations: 301 kB / 436.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.3033, allocations: 152.4 kB / 437.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.778e-05/0.3033, allocations: 8.812 kB / 437.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.3034, allocations: 36.3 kB / 437.1 MB, free: 5.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.3034, allocations: 9.062 kB / 437.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003393/0.3068, allocations: 1.382 MB / 438.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.3068, allocations: 109.7 kB / 438.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.3072, allocations: 363.1 kB / 439 MB, free: 4.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.3072, allocations: 31.62 kB / 439 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3074, allocations: 246.1 kB / 439.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.134e-05/0.3074, allocations: 122.2 kB / 439.3 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.3076, allocations: 77.27 kB / 439.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.3077, allocations: 353 kB / 439.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.3082, allocations: 173.1 kB / 439.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.3088, allocations: 250.2 kB / 440.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009259/0.3097, allocations: 393.3 kB / 440.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3097, allocations: 1.219 kB / 440.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001177/0.3109, allocations: 498.7 kB / 441.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3109, allocations: 7 kB / 441.1 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3109, allocations: 7.734 kB / 441.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3109, allocations: 4.688 kB / 441.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009271/0.3119, allocations: 210.9 kB / 441.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.3134, allocations: 1.567 MB / 442.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004164/0.3138, allocations: 39.34 kB / 442.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-05/0.3138, allocations: 11.66 kB / 442.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005671/0.3144, allocations: 276.5 kB / 443.2 MB, free: 1.605 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004515/0.3149, allocations: 242.5 kB / 443.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008549/0.3157, allocations: 371.7 kB / 443.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.095e-06/0.3157, allocations: 1.25 kB / 443.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001075/0.3168, allocations: 475.2 kB / 444.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.3168, allocations: 6.656 kB / 444.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.3168, allocations: 2.094 kB / 444.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.554e-06/0.3168, allocations: 3.562 kB / 444.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.3173, allocations: 122.7 kB / 444.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.3173, allocations: 8.234 kB / 444.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.3177, allocations: 39.59 kB / 444.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.3177, allocations: 15.09 kB / 444.4 MB, free: 1.086 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.0001501/0.3179, allocations: 206.4 kB / 444.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.47e-05/0.3179, allocations: 43.89 kB / 444.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.3181, allocations: 52.92 kB / 444.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3181, allocations: 7.031 kB / 444.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.3181, allocations: 1 kB / 444.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3181, allocations: 2.062 kB / 444.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.3198, allocations: 0.913 MB / 445.6 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3198, allocations: 0 / 445.6 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004536/0.3203, allocations: 87.44 kB / 445.7 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3203, allocations: 5.719 kB / 445.7 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.3203, allocations: 7.859 kB / 445.7 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.3203, allocations: 7.5 kB / 445.8 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3203, allocations: 1.062 kB / 445.8 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.3219, allocations: 0.6768 MB / 446.4 MB, free: 0 / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002244/0.3222, allocations: 142.1 kB / 446.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.3222, allocations: 16.94 kB / 446.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.3225, allocations: 32.03 kB / 446.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.568e-05/0.3226, allocations: 23.52 kB / 446.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.3226, allocations: 12.06 kB / 446.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003056/0.3229, allocations: 245.6 kB / 446.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3229, allocations: 0 / 446.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006104/0.3236, allocations: 144.9 kB / 447 MB, free: 15.69 MB / 366.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.001934/0.3255, allocations: 1.217 MB / 448.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002145/0.3276, allocations: 0.6514 MB / 448.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3276, allocations: 0.875 kB / 448.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005126/0.3282, allocations: 177.3 kB / 449.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.3289, allocations: 103.4 kB / 449.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007136/0.336, allocations: 4.024 MB / 453.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/0.3365, allocations: 0.8154 MB / 454 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003279/0.3368, allocations: 69.33 kB / 454.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002426/0.3371, allocations: 142 kB / 454.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3371, allocations: 0 / 454.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04216/0.3792, allocations: 8.761 MB / 463 MB, free: 8.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.15, allocations: 8.328 kB / 463 MB, free: 8.023 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.72830802097451]