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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 112.4 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.00155, allocations: 193.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.886/1.886, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 56.12 kB / 280.2 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1366, allocations: 46.62 MB / 326.9 MB, free: 4.695 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005191/0.1419, allocations: 3.151 MB / 330 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.1441, allocations: 0.9982 MB / 331 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002991/0.1445, allocations: 15.88 kB / 331 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005177/0.145, allocations: 67.48 kB / 331.1 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.1453, allocations: 91.33 kB / 331.2 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006744/0.146, allocations: 203.7 kB / 331.4 MB, free: 144 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000695/0.1467, allocations: 0.5262 MB / 331.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004003/0.1471, allocations: 161.5 kB / 332.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002777/0.1474, allocations: 199.2 kB / 332.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.1478, allocations: 210.9 kB / 332.5 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.8e-05/0.1478, allocations: 43.94 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.953e-05/0.1479, allocations: 44 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1481, allocations: 99.67 kB / 332.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000232/0.1483, allocations: 218.7 kB / 332.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005389/0.1489, allocations: 486.3 kB / 333.3 MB, free: 14.17 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1489, allocations: 0 / 333.3 MB, free: 14.17 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1489, allocations: 0 / 333.3 MB, free: 14.17 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.1489, allocations: 4 kB / 333.3 MB, free: 14.16 MB / 286.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.00154/0.1505, allocations: 0.7677 MB / 334.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.919e-05/0.1505, allocations: 16.03 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.1506, allocations: 70.72 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.1508, allocations: 56.27 kB / 334.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.1514, allocations: 367.7 kB / 334.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.453e-05/0.1514, allocations: 25.38 kB / 334.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.018e-05/0.1515, allocations: 40.28 kB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009536/0.1525, allocations: 458.5 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.1525, allocations: 0 / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.1525, allocations: 16 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.1526, allocations: 8 kB / 335.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.1536, allocations: 379.6 kB / 335.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.1561, allocations: 1.579 MB / 337.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009064/0.157, allocations: 314.6 kB / 337.4 MB, free: 9.883 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004109/0.1574, allocations: 168.7 kB / 337.6 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.1574, allocations: 0 / 337.6 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1575, allocations: 38.56 kB / 337.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.203e-06/0.1575, allocations: 0 / 337.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003238/0.1607, allocations: 1.392 MB / 339 MB, free: 8.184 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.1608, allocations: 81.11 kB / 339.1 MB, free: 8.086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004439/0.1613, allocations: 353.7 kB / 339.4 MB, free: 7.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.1613, allocations: 33.7 kB / 339.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.1616, allocations: 243.9 kB / 339.7 MB, free: 7.449 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.1617, allocations: 122.4 kB / 339.8 MB, free: 7.328 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.1618, allocations: 82.03 kB / 339.9 MB, free: 7.242 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.1621, allocations: 350.7 kB / 340.2 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004661/0.1625, allocations: 166.5 kB / 340.4 MB, free: 6.723 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.1631, allocations: 256.8 kB / 340.6 MB, free: 6.441 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/0.1641, allocations: 383.5 kB / 341 MB, free: 6.039 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1641, allocations: 4 kB / 341 MB, free: 6.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001254/0.1653, allocations: 0.4933 MB / 341.5 MB, free: 5.535 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.1654, allocations: 4 kB / 341.5 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.1654, allocations: 4 kB / 341.5 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.159e-05/0.1654, allocations: 4.219 kB / 341.5 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008758/0.1663, allocations: 207.7 kB / 341.7 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002282/0.1686, allocations: 1.588 MB / 343.3 MB, free: 3.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.1691, allocations: 35.95 kB / 343.4 MB, free: 3.559 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.1691, allocations: 16 kB / 343.4 MB, free: 3.543 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006478/0.1698, allocations: 273 kB / 343.6 MB, free: 3.273 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005206/0.1703, allocations: 228.8 kB / 343.9 MB, free: 3.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008121/0.1711, allocations: 379.4 kB / 344.2 MB, free: 2.621 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.616e-06/0.1711, allocations: 3.984 kB / 344.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001016/0.1722, allocations: 473 kB / 344.7 MB, free: 2.148 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.1722, allocations: 4 kB / 344.7 MB, free: 2.145 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1722, allocations: 4 kB / 344.7 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.012e-06/0.1722, allocations: 4 kB / 344.7 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.1727, allocations: 131.9 kB / 344.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1727, allocations: 4 kB / 344.8 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.173, allocations: 27.97 kB / 344.9 MB, free: 1.977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.173, allocations: 19.98 kB / 344.9 MB, free: 1.957 MB / 286.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.0001794/0.1732, allocations: 200.1 kB / 345.1 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.635e-05/0.1733, allocations: 43.44 kB / 345.1 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.287e-05/0.1734, allocations: 56.19 kB / 345.2 MB, free: 1.656 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1734, allocations: 4 kB / 345.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1734, allocations: 0 / 345.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.1734, allocations: 3.984 kB / 345.2 MB, free: 1.648 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.1753, allocations: 0.9104 MB / 346.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1753, allocations: 0 / 346.1 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.1757, allocations: 87.88 kB / 346.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1757, allocations: 128 / 346.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.1758, allocations: 12 kB / 346.2 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/0.1758, allocations: 7.984 kB / 346.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1758, allocations: 0 / 346.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.1774, allocations: 0.6774 MB / 346.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.1775, allocations: 132.7 kB / 347 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.1776, allocations: 11.94 kB / 347 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/0.1779, allocations: 35.95 kB / 347.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.178, allocations: 23.97 kB / 347.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.178, allocations: 8 kB / 347.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003139/0.1784, allocations: 259 kB / 347.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1784, allocations: 4 kB / 347.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005578/0.1789, allocations: 136 kB / 347.5 MB, free: 15.25 MB / 302.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.001677/0.1806, allocations: 1.215 MB / 348.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.1826, allocations: 0.7069 MB / 349.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1826, allocations: 4 kB / 349.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004687/0.1831, allocations: 175.8 kB / 349.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008761/0.184, allocations: 109.8 kB / 349.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007045/0.1911, allocations: 4.208 MB / 353.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.1916, allocations: 0.8156 MB / 354.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003234/0.1919, allocations: 67.23 kB / 354.8 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002624/0.1922, allocations: 139.4 kB / 354.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1922, allocations: 4 kB / 354.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.2193, allocations: 8.404 MB / 363.3 MB, free: 15.17 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.2196, allocations: 227.7 kB / 363.5 MB, free: 14.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.394/2.614, allocations: 0 / 363.5 MB, free: 14.9 MB / 318.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches