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.000816/0.000816, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008284/0.0008284, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8952/0.8952, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.759e-05/1.922e-05, allocations: 4.953 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003067/0.003086, allocations: 2.919 MB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.004584, allocations: 0.9776 MB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002299/0.004814, allocations: 15.88 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.005146, allocations: 87.17 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.00536, allocations: 111 kB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004856/0.005846, allocations: 238.8 kB / 328.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007066/0.006552, allocations: 0.53 MB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.006775, allocations: 113.7 kB / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/0.007043, allocations: 279.4 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.007222, allocations: 163.4 kB / 330 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.514e-05/0.007267, allocations: 40 kB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.171e-05/0.007308, allocations: 44 kB / 330.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.907e-05/0.007397, allocations: 107.6 kB / 330.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.0075, allocations: 139.6 kB / 330.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.007939, allocations: 0.4944 MB / 330.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.007943, allocations: 4 kB / 330.8 MB, free: 9.676 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.007944, allocations: 0 / 330.8 MB, free: 9.676 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.912e-06/0.00795, allocations: 0 / 330.8 MB, free: 9.676 MB / 298.7 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.0008995/0.00885, allocations: 0.703 MB / 331.5 MB, free: 8.941 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.008891, allocations: 12.03 kB / 331.5 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.226e-05/0.008953, allocations: 74.72 kB / 331.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.737e-05/0.00902, allocations: 56.55 kB / 331.6 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.009452, allocations: 305.5 kB / 331.9 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.00948, allocations: 29.38 kB / 332 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.009529, allocations: 36.38 kB / 332 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006032/0.01013, allocations: 0.4953 MB / 332.5 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.01015, allocations: 8.141 kB / 332.5 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.01018, allocations: 20.12 kB / 332.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.01019, allocations: 8 kB / 332.5 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005785/0.01077, allocations: 379.6 kB / 332.9 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.01224, allocations: 1.414 MB / 334.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005375/0.01278, allocations: 298.7 kB / 334.6 MB, free: 5.664 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.01301, allocations: 152.7 kB / 334.8 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.01303, allocations: 8 kB / 334.8 MB, free: 5.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.01305, allocations: 38.5 kB / 334.8 MB, free: 5.457 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.414e-06/0.01306, allocations: 4 kB / 334.8 MB, free: 5.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.0019/0.01496, allocations: 1.236 MB / 336 MB, free: 4.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.01501, allocations: 106.8 kB / 336.1 MB, free: 4.031 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005343/0.01555, allocations: 369.6 kB / 336.5 MB, free: 3.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.01557, allocations: 29.7 kB / 336.5 MB, free: 3.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.01568, allocations: 240.3 kB / 336.8 MB, free: 3.387 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.01574, allocations: 123 kB / 336.9 MB, free: 3.266 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.582e-05/0.01583, allocations: 86.14 kB / 337 MB, free: 3.176 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.127e-05/0.01592, allocations: 354.8 kB / 337.3 MB, free: 2.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/0.01617, allocations: 166.7 kB / 337.5 MB, free: 2.656 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003027/0.01648, allocations: 313.6 kB / 337.8 MB, free: 2.301 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004998/0.01698, allocations: 388 kB / 338.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.01698, allocations: 0 / 338.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006317/0.01761, allocations: 0.4892 MB / 338.7 MB, free: 1.398 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.01763, allocations: 7.984 kB / 338.7 MB, free: 1.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.01764, allocations: 4 kB / 338.7 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.01765, allocations: 4 kB / 338.7 MB, free: 1.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004713/0.01812, allocations: 204 kB / 338.9 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001046/0.01917, allocations: 1.472 MB / 340.3 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.01939, allocations: 43.92 kB / 340.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.01941, allocations: 16 kB / 340.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003446/0.01976, allocations: 277.1 kB / 340.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002831/0.02004, allocations: 297.7 kB / 341 MB, free: 14.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004628/0.0205, allocations: 375.8 kB / 341.3 MB, free: 14.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/0.0205, allocations: 0 / 341.3 MB, free: 14.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005882/0.02109, allocations: 469 kB / 341.8 MB, free: 14.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.0211, allocations: 11.92 kB / 341.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-06/0.02111, allocations: 4 kB / 341.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.589e-06/0.02111, allocations: 4 kB / 341.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.02136, allocations: 120.1 kB / 341.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.02137, allocations: 7.938 kB / 341.9 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.02153, allocations: 39.89 kB / 342 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.02155, allocations: 16 kB / 342 MB, free: 13.87 MB / 314.7 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.0001208/0.02167, allocations: 197.2 kB / 342.2 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.378e-05/0.02171, allocations: 43.77 kB / 342.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.326e-05/0.02177, allocations: 40.25 kB / 342.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.02178, allocations: 8 kB / 342.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.02178, allocations: 3.938 kB / 342.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.02179, allocations: 7.922 kB / 342.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.02281, allocations: 0.8375 MB / 343.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.02282, allocations: 7.938 kB / 343.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.02305, allocations: 83.88 kB / 343.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.02305, allocations: 4 kB / 343.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.02307, allocations: 8 kB / 343.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.02307, allocations: 0 / 343.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0002363/0.0233, allocations: 11.92 kB / 343.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008049/0.02411, allocations: 0.672 MB / 343.9 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.432e-05/0.0242, allocations: 63.72 kB / 344 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.02423, allocations: 8 kB / 344 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.02438, allocations: 35.95 kB / 344 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.02444, allocations: 27.89 kB / 344 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.02446, allocations: 16.12 kB / 344.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001804/0.02464, allocations: 243.2 kB / 344.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02464, allocations: 0 / 344.3 MB, free: 11.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003946/0.02503, allocations: 144 kB / 344.4 MB, free: 11.33 MB / 314.7 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.001038/0.02607, allocations: 1.215 MB / 345.6 MB, free: 10.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.02718, allocations: 0.661 MB / 346.3 MB, free: 9.418 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.02718, allocations: 0 / 346.3 MB, free: 9.418 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002516/0.02743, allocations: 183.7 kB / 346.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.0279, allocations: 100.8 kB / 346.6 MB, free: 9.145 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004273/0.03217, allocations: 3.924 MB / 350.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.03232, allocations: 220.1 kB / 350.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000199/0.03252, allocations: 63.23 kB / 350.8 MB, free: 4.758 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000155/0.03267, allocations: 144.5 kB / 350.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.03267, allocations: 0 / 350.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02522/0.05789, allocations: 9.761 MB / 360.7 MB, free: 11.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/7.945, allocations: 8.828 kB / 360.7 MB, free: 11.04 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/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: 9.659710789099336]