Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001493/0.001493, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00155/0.00155, allocations: 218.2 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.92 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2372, allocations: 53.36 MB / 431.8 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004287/0.2415, allocations: 2.913 MB / 434.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00199/0.2435, allocations: 0.962 MB / 435.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002167/0.2437, allocations: 19.88 kB / 435.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000351/0.244, allocations: 87.17 kB / 435.8 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.2443, allocations: 107.1 kB / 435.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006031/0.2449, allocations: 243.2 kB / 436.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005926/0.2455, allocations: 0.5184 MB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.2457, allocations: 129.7 kB / 436.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.246, allocations: 203.1 kB / 437 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.2462, allocations: 207 kB / 437.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.442e-05/0.2463, allocations: 43.98 kB / 437.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.502e-05/0.2463, allocations: 40 kB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2465, allocations: 107.6 kB / 437.4 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.2466, allocations: 175 kB / 437.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005508/0.2472, allocations: 0.4923 MB / 438.1 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2472, allocations: 4 kB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2472, allocations: 0 / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.2472, allocations: 4 kB / 438.1 MB, free: 424 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.001295/0.2485, allocations: 0.7058 MB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2485, allocations: 8.031 kB / 438.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.697e-05/0.2486, allocations: 9.188 kB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.233e-05/0.2487, allocations: 78.66 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.828e-05/0.2488, allocations: 56.61 kB / 438.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.2493, allocations: 306.2 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.2493, allocations: 25.38 kB / 439.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.2494, allocations: 36.38 kB / 439.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009053/0.2503, allocations: 0.5025 MB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.2503, allocations: 3.953 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.2503, allocations: 16 kB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2504, allocations: 12 kB / 439.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009668/0.2513, allocations: 375.6 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.2534, allocations: 1.414 MB / 441.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007769/0.2542, allocations: 303.3 kB / 441.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003979/0.2545, allocations: 152.8 kB / 442 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2546, allocations: 4 kB / 442.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.2546, allocations: 34.56 kB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.2546, allocations: 0 / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003086/0.2577, allocations: 1.247 MB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.502e-05/0.2578, allocations: 106.8 kB / 443.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003963/0.2582, allocations: 357.6 kB / 443.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.2582, allocations: 33.7 kB / 443.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.2584, allocations: 248.4 kB / 444.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.2585, allocations: 119 kB / 444.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.2586, allocations: 78.12 kB / 444.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.2588, allocations: 358.7 kB / 444.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.2592, allocations: 174.5 kB / 444.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000531/0.2597, allocations: 309 kB / 445.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008593/0.2606, allocations: 391.4 kB / 445.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2606, allocations: 0 / 445.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001064/0.2617, allocations: 0.4934 MB / 446 MB, free: 8.125 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.2617, allocations: 8 kB / 446 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2617, allocations: 4 kB / 446 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.2617, allocations: 7.984 kB / 446 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008493/0.2626, allocations: 207.9 kB / 446.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.2642, allocations: 1.469 MB / 447.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.2645, allocations: 35.95 kB / 447.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.2645, allocations: 16 kB / 447.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000508/0.265, allocations: 272.9 kB / 448 MB, free: 6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004759/0.2655, allocations: 301.1 kB / 448.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007503/0.2662, allocations: 363.5 kB / 448.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.793e-06/0.2662, allocations: 3.938 kB / 448.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009607/0.2672, allocations: 473.3 kB / 449.1 MB, free: 4.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.2672, allocations: 4 kB / 449.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2672, allocations: 4 kB / 449.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.985e-06/0.2672, allocations: 7.938 kB / 449.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000471/0.2677, allocations: 115.9 kB / 449.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.2677, allocations: 7.984 kB / 449.2 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.268, allocations: 36.12 kB / 449.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.268, allocations: 16 kB / 449.3 MB, free: 4.617 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.0001655/0.2682, allocations: 208.1 kB / 449.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.806e-05/0.2682, allocations: 39.72 kB / 449.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.865e-05/0.2683, allocations: 60.11 kB / 449.6 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2683, allocations: 4 kB / 449.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.2683, allocations: 0 / 449.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2684, allocations: 4 kB / 449.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.2699, allocations: 0.8366 MB / 450.4 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.2699, allocations: 8.125 kB / 450.4 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004182/0.2703, allocations: 83.88 kB / 450.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.2703, allocations: 4 kB / 450.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.2704, allocations: 8 kB / 450.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.2704, allocations: 3.984 kB / 450.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.2704, allocations: 8 kB / 450.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.2717, allocations: 0.6677 MB / 451.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.2718, allocations: 63.75 kB / 451.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.952e-05/0.2719, allocations: 15.94 kB / 451.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.2722, allocations: 35.95 kB / 451.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.2723, allocations: 23.95 kB / 451.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.2723, allocations: 15.94 kB / 451.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002691/0.2726, allocations: 247.2 kB / 451.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2726, allocations: 0 / 451.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005297/0.2731, allocations: 140 kB / 451.7 MB, free: 2.062 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.001776/0.2749, allocations: 1.216 MB / 452.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.2767, allocations: 0.6609 MB / 453.6 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2767, allocations: 0 / 453.6 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004496/0.2772, allocations: 175.8 kB / 453.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.2778, allocations: 109.1 kB / 453.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006323/0.2842, allocations: 4.018 MB / 457.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.2844, allocations: 212.2 kB / 458.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002778/0.2847, allocations: 67.22 kB / 458.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.2849, allocations: 147.3 kB / 458.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of SimCode: time 1.163e-06/0.2849, allocations: 0 / 458.3 MB, free: 11.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3192, allocations: 9.362 MB / 467.7 MB, free: 2.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.58, allocations: 4.062 kB / 467.7 MB, free: 2.125 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/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_4.1.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.148071857984178]