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.001841/0.001841, allocations: 119.3 kB / 17.79 MB, free: 5.285 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.002075/0.002075, allocations: 186.9 kB / 20.73 MB, free: 2.355 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.402/1.402, allocations: 225.6 MB / 249.1 MB, free: 3.645 MB / 190.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 51.91 kB / 365.6 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09806/0.09951, allocations: 52.14 MB / 417.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004527/0.104, allocations: 3.13 MB / 420.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.1058, allocations: 0.9699 MB / 421.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.106, allocations: 11.94 kB / 421.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003791/0.1064, allocations: 91.16 kB / 422 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.1066, allocations: 107.1 kB / 422.1 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005585/0.1072, allocations: 231.5 kB / 422.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005987/0.1078, allocations: 0.5223 MB / 422.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.108, allocations: 121.3 kB / 422.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.1083, allocations: 195.2 kB / 423.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.1086, allocations: 207 kB / 423.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.1086, allocations: 40 kB / 423.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.134e-05/0.1087, allocations: 44 kB / 423.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.1088, allocations: 107.6 kB / 423.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.109, allocations: 214.8 kB / 423.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005696/0.1096, allocations: 497.8 kB / 424.2 MB, free: 6.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1096, allocations: 8 kB / 424.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1096, allocations: 0 / 424.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1096, allocations: 0 / 424.2 MB, free: 6.242 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.001356/0.111, allocations: 0.7791 MB / 425 MB, free: 5.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.111, allocations: 12.03 kB / 425 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.669e-05/0.1111, allocations: 78.66 kB / 425.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.1112, allocations: 56.55 kB / 425.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.1117, allocations: 376 kB / 425.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.1118, allocations: 29.12 kB / 425.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.096e-05/0.1118, allocations: 43.89 kB / 425.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008723/0.1127, allocations: 446.4 kB / 426 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.1127, allocations: 7.938 kB / 426 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.1128, allocations: 16 kB / 426 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1128, allocations: 8 kB / 426.1 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009511/0.1137, allocations: 379.6 kB / 426.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.1159, allocations: 1.567 MB / 428 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007882/0.1167, allocations: 293.9 kB / 428.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/0.1171, allocations: 169.2 kB / 428.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.04e-05/0.1172, allocations: 11.98 kB / 428.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.1172, allocations: 34.55 kB / 428.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.393e-06/0.1172, allocations: 0 / 428.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003124/0.1203, allocations: 1.385 MB / 429.9 MB, free: 256 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.1204, allocations: 81.11 kB / 430 MB, free: 156 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004259/0.1208, allocations: 353.7 kB / 430.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.1208, allocations: 29.7 kB / 430.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.121, allocations: 244.3 kB / 430.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.873e-05/0.1211, allocations: 130.8 kB / 430.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1212, allocations: 78.12 kB / 430.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1214, allocations: 358.7 kB / 431.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.1219, allocations: 170.5 kB / 431.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005031/0.1224, allocations: 252.8 kB / 431.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008693/0.1232, allocations: 392 kB / 431.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1232, allocations: 0 / 431.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001084/0.1243, allocations: 497 kB / 432.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.1243, allocations: 8 kB / 432.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1243, allocations: 0 / 432.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1243, allocations: 4 kB / 432.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000874/0.1252, allocations: 211.8 kB / 432.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00174/0.127, allocations: 1.572 MB / 434.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.1273, allocations: 44.05 kB / 434.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.1273, allocations: 8 kB / 434.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005131/0.1278, allocations: 284.8 kB / 434.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004539/0.1283, allocations: 232.8 kB / 434.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007913/0.1291, allocations: 363.7 kB / 435.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.1291, allocations: 4 kB / 435.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009765/0.13, allocations: 469 kB / 435.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.1301, allocations: 16.16 kB / 435.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-06/0.1301, allocations: 0 / 435.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/0.1301, allocations: 4 kB / 435.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.1305, allocations: 123.8 kB / 435.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1305, allocations: 4 kB / 435.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.1308, allocations: 43.89 kB / 435.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.143e-05/0.1309, allocations: 16 kB / 435.8 MB, free: 10.03 MB / 366.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.0001514/0.131, allocations: 208.8 kB / 436 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.469e-05/0.1311, allocations: 39.7 kB / 436 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.164e-05/0.1312, allocations: 48.25 kB / 436.1 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.1312, allocations: 4 kB / 436.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.1312, allocations: 0 / 436.1 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1312, allocations: 3.984 kB / 436.1 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.1328, allocations: 0.9193 MB / 437 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.1328, allocations: 4.125 kB / 437 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004168/0.1333, allocations: 87.88 kB / 437.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1333, allocations: 0 / 437.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.1333, allocations: 8 kB / 437.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.1333, allocations: 7.984 kB / 437.1 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1333, allocations: 0 / 437.1 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001371/0.1347, allocations: 0.6677 MB / 437.8 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.1348, allocations: 140.9 kB / 437.9 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.598e-05/0.1349, allocations: 8 kB / 437.9 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.1352, allocations: 31.95 kB / 437.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.526e-05/0.1352, allocations: 31.91 kB / 438 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.1353, allocations: 12 kB / 438 MB, free: 7.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.1355, allocations: 247.2 kB / 438.2 MB, free: 7.457 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1355, allocations: 0 / 438.2 MB, free: 7.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005482/0.1361, allocations: 136 kB / 438.4 MB, free: 7.324 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.001732/0.1378, allocations: 1.235 MB / 439.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.1396, allocations: 0.6597 MB / 440.2 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1396, allocations: 0 / 440.2 MB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004307/0.14, allocations: 176.4 kB / 440.4 MB, free: 5.215 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006359/0.1407, allocations: 109.7 kB / 440.5 MB, free: 5.117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006317/0.147, allocations: 4.027 MB / 444.6 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.1475, allocations: 0.8195 MB / 445.4 MB, free: 96 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002484/0.1477, allocations: 55.25 kB / 445.4 MB, free: 44 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1631/0.3108, allocations: 137.9 kB / 445.6 MB, free: 30.12 MB / 366.1 MB Notification: Performance of SimCode: time 1.123e-06/0.3108, allocations: 0 / 445.6 MB, free: 30.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03657/0.3474, allocations: 8.795 MB / 454.4 MB, free: 29.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.99, allocations: 13.39 kB / 454.4 MB, free: 29.43 MB / 366.1 MB " [Timeout remaining time 648] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.41583459591493]