Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008342/0.0008342, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.004682/0.004682, allocations: 162 kB / 24.69 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8994/0.8994, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.253e-06/1.253e-06, allocations: 0 / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.216e-05/1.342e-05, allocations: 2.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002732/0.002745, allocations: 2.907 MB / 301.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1241/0.1269, allocations: 0.9717 MB / 302.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003381/0.1272, allocations: 17.94 kB / 302.3 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003944/0.1276, allocations: 88.94 kB / 302.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.1278, allocations: 119.4 kB / 302.5 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.1283, allocations: 231 kB / 302.8 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005001/0.1288, allocations: 0.5356 MB / 303.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.129, allocations: 117.2 kB / 303.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.1293, allocations: 284 kB / 303.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.1295, allocations: 158.7 kB / 303.8 MB, free: 13 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.714e-05/0.1296, allocations: 40.56 kB / 303.9 MB, free: 13 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.1296, allocations: 42.78 kB / 303.9 MB, free: 13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.1297, allocations: 108.4 kB / 304 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1299, allocations: 140.7 kB / 304.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.1303, allocations: 0.501 MB / 304.7 MB, free: 12.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.1303, allocations: 1.75 kB / 304.7 MB, free: 12.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1303, allocations: 4.5 kB / 304.7 MB, free: 12.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1303, allocations: 0 / 304.7 MB, free: 12.77 MB / 282.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.000885/0.1312, allocations: 0.7045 MB / 305.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.1313, allocations: 18.27 kB / 305.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/0.1313, allocations: 74.61 kB / 305.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.387e-05/0.1314, allocations: 55.23 kB / 305.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000553/0.132, allocations: 315.5 kB / 305.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.132, allocations: 31.53 kB / 305.9 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.1321, allocations: 38.33 kB / 305.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006167/0.1327, allocations: 470.6 kB / 306.4 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.1327, allocations: 6.938 kB / 306.4 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.1327, allocations: 15.75 kB / 306.4 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1327, allocations: 13.16 kB / 306.4 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006018/0.1333, allocations: 377.5 kB / 306.8 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.1346, allocations: 1.412 MB / 308.2 MB, free: 10.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.1351, allocations: 306.4 kB / 308.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.1354, allocations: 152.4 kB / 308.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.1354, allocations: 4.125 kB / 308.6 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.1354, allocations: 37.88 kB / 308.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 1.774e-06/0.1354, allocations: 1.188 kB / 308.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of matching and sorting (n=32): time 0.001922/0.1373, allocations: 1.234 MB / 309.9 MB, free: 9.715 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.1374, allocations: 80.55 kB / 310 MB, free: 9.621 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.1377, allocations: 375.5 kB / 310.3 MB, free: 9.426 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.1377, allocations: 38.98 kB / 310.4 MB, free: 9.383 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.458e-05/0.1378, allocations: 244.9 kB / 310.6 MB, free: 9.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.994e-05/0.1378, allocations: 120.2 kB / 310.7 MB, free: 9.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.18e-05/0.1379, allocations: 75.95 kB / 310.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.554e-05/0.138, allocations: 349.1 kB / 311.2 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.1382, allocations: 174.8 kB / 311.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003208/0.1386, allocations: 279.2 kB / 311.6 MB, free: 8.488 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.1391, allocations: 385.4 kB / 312 MB, free: 8.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1391, allocations: 5.312 kB / 312 MB, free: 8.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000649/0.1397, allocations: 496.2 kB / 312.5 MB, free: 8.117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.1398, allocations: 18.34 kB / 312.5 MB, free: 8.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1398, allocations: 2.875 kB / 312.5 MB, free: 8.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1398, allocations: 3.656 kB / 312.5 MB, free: 8.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004908/0.1403, allocations: 208.6 kB / 312.7 MB, free: 8.094 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008092/0.1411, allocations: 1.464 MB / 314.2 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.1413, allocations: 42.25 kB / 314.2 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.1413, allocations: 15.25 kB / 314.2 MB, free: 6.738 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003036/0.1416, allocations: 271.9 kB / 314.5 MB, free: 6.594 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002672/0.1418, allocations: 270.5 kB / 314.7 MB, free: 6.422 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004378/0.1423, allocations: 371.6 kB / 315.1 MB, free: 6.234 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.034e-06/0.1423, allocations: 1.375 kB / 315.1 MB, free: 6.234 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000558/0.1428, allocations: 473.6 kB / 315.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.745e-06/0.1429, allocations: 6.594 kB / 315.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1429, allocations: 3.891 kB / 315.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.067e-06/0.1429, allocations: 3.469 kB / 315.6 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.1431, allocations: 117.4 kB / 315.7 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1431, allocations: 4.734 kB / 315.7 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1433, allocations: 35.89 kB / 315.7 MB, free: 6.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.1433, allocations: 22.88 kB / 315.8 MB, free: 6.023 MB / 282.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 7.473e-05/0.1434, allocations: 203.5 kB / 316 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.1434, allocations: 43.16 kB / 316 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.1434, allocations: 47.62 kB / 316 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1434, allocations: 3.844 kB / 316 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1434, allocations: 0 / 316 MB, free: 5.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1435, allocations: 5.531 kB / 316.1 MB, free: 5.766 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009394/0.1444, allocations: 0.8404 MB / 316.9 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1444, allocations: 1.188 kB / 316.9 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.1446, allocations: 91.03 kB / 317 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1446, allocations: 2.844 kB / 317 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1446, allocations: 12.86 kB / 317 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1446, allocations: 3.031 kB / 317 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1446, allocations: 1.219 kB / 317 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007814/0.1454, allocations: 0.6759 MB / 317.7 MB, free: 4.918 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.996e-05/0.1455, allocations: 63.95 kB / 317.7 MB, free: 4.879 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.1455, allocations: 8.328 kB / 317.7 MB, free: 4.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.1457, allocations: 37.25 kB / 317.8 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.1458, allocations: 23.58 kB / 317.8 MB, free: 4.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.1458, allocations: 11.09 kB / 317.8 MB, free: 4.859 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000192/0.146, allocations: 255.7 kB / 318.1 MB, free: 4.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.146, allocations: 3.938 kB / 318.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003826/0.1463, allocations: 134.8 kB / 318.2 MB, free: 4.711 MB / 282.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.001001/0.1473, allocations: 1.216 MB / 319.4 MB, free: 3.836 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.1485, allocations: 0.6634 MB / 320.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1485, allocations: 1.312 kB / 320.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.1488, allocations: 181.8 kB / 320.3 MB, free: 3.617 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.1492, allocations: 101.7 kB / 320.4 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.1532, allocations: 3.948 MB / 324.3 MB, free: 1.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.1533, allocations: 212.8 kB / 324.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.1535, allocations: 67.38 kB / 324.6 MB, free: 1.039 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001444/0.1537, allocations: 147.5 kB / 324.7 MB, free: 0.918 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.1537, allocations: 0 / 324.7 MB, free: 0.918 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02651/0.1802, allocations: 9.891 MB / 334.6 MB, free: 9.309 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.713/7.893, allocations: 4 kB / 334.6 MB, free: 9.305 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.577868873253465]