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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001201/0.001202, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 223.3 MB / 241.6 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003128, allocations: 8 kB / 301.5 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.132, allocations: 50.43 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004492/0.1366, allocations: 2.75 MB / 354.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002983/0.1396, allocations: 0.9389 MB / 355.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000809/0.1405, allocations: 19.88 kB / 355.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006843/0.1412, allocations: 67.44 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006593/0.1419, allocations: 83.38 kB / 355.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008605/0.1428, allocations: 205 kB / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007283/0.1435, allocations: 494.9 kB / 356.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003388/0.1438, allocations: 153.2 kB / 356.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.1441, allocations: 155.2 kB / 356.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.1443, allocations: 175 kB / 357 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.302e-05/0.1444, allocations: 16 kB / 357 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.519e-05/0.1444, allocations: 19.94 kB / 357 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.1446, allocations: 71.62 kB / 357.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.1448, allocations: 216.5 kB / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.1452, allocations: 450.4 kB / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1452, allocations: 0 / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1452, allocations: 0 / 357.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1452, allocations: 0 / 357.7 MB, free: 13.78 MB / 302.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.001339/0.1466, allocations: 0.7172 MB / 358.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/0.1466, allocations: 8.031 kB / 358.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.806e-05/0.1468, allocations: 74.72 kB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.629e-05/0.1468, allocations: 52.38 kB / 358.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.1473, allocations: 359.7 kB / 358.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.1474, allocations: 25.38 kB / 358.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.29e-05/0.1475, allocations: 39.94 kB / 359 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.1485, allocations: 478.3 kB / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.1485, allocations: 3.906 kB / 359.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.945e-05/0.1486, allocations: 16 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1486, allocations: 8 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.1496, allocations: 423.6 kB / 359.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.1518, allocations: 1.583 MB / 361.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/0.1527, allocations: 347.5 kB / 361.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.1532, allocations: 188.8 kB / 362 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.1532, allocations: 4 kB / 362 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.1532, allocations: 30.56 kB / 362 MB, free: 9.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.833e-06/0.1532, allocations: 0 / 362 MB, free: 9.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003513/0.1568, allocations: 1.526 MB / 363.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.1569, allocations: 85.11 kB / 363.6 MB, free: 7.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/0.1573, allocations: 349.7 kB / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.1573, allocations: 33.7 kB / 364 MB, free: 7.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.1575, allocations: 240 kB / 364.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.963e-05/0.1577, allocations: 122.3 kB / 364.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.52e-05/0.1577, allocations: 37.7 kB / 364.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.1579, allocations: 354.7 kB / 364.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004805/0.1584, allocations: 188.8 kB / 364.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.1589, allocations: 276.8 kB / 365.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000954/0.1599, allocations: 443.3 kB / 365.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1599, allocations: 4 kB / 365.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00119/0.1611, allocations: 0.5322 MB / 366.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.1613, allocations: 144 kB / 366.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1613, allocations: 4 kB / 366.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.1613, allocations: 4 kB / 366.3 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009506/0.1623, allocations: 259.7 kB / 366.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.1641, allocations: 1.544 MB / 368.1 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.1645, allocations: 43.95 kB / 368.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.1645, allocations: 16 kB / 368.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.1645, allocations: 4 kB / 368.2 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001029/0.1656, allocations: 455.5 kB / 368.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.1656, allocations: 8.156 kB / 368.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.749e-06/0.1656, allocations: 8 kB / 368.6 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.1661, allocations: 119.9 kB / 368.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-06/0.1661, allocations: 4 kB / 368.8 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.1664, allocations: 51.95 kB / 368.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.1664, allocations: 19.94 kB / 368.8 MB, free: 2.055 MB / 302.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.0002728/0.1667, allocations: 237 kB / 369.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-05/0.1668, allocations: 39.53 kB / 369.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.606e-05/0.1669, allocations: 48.23 kB / 369.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1669, allocations: 8 kB / 369.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1669, allocations: 0 / 369.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.1669, allocations: 3.938 kB / 369.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.1687, allocations: 0.958 MB / 370.1 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1687, allocations: 3.938 kB / 370.1 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/0.1691, allocations: 104 kB / 370.2 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.1692, allocations: 4 kB / 370.2 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.1692, allocations: 4 kB / 370.2 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.1692, allocations: 4 kB / 370.2 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1692, allocations: 0 / 370.2 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2719/0.4411, allocations: 0.7298 MB / 371 MB, free: 24.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002477/0.4414, allocations: 140.3 kB / 371.1 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.786e-05/0.4415, allocations: 9.188 kB / 371.1 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.4418, allocations: 45.94 kB / 371.2 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.442, allocations: 24.8 kB / 371.2 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.442, allocations: 9.359 kB / 371.2 MB, free: 24.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003965/0.4424, allocations: 249.5 kB / 371.4 MB, free: 24.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4424, allocations: 0.75 kB / 371.4 MB, free: 24.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006802/0.4431, allocations: 135 kB / 371.6 MB, free: 24.32 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.002032/0.4451, allocations: 1.291 MB / 372.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002327/0.4475, allocations: 0.801 MB / 373.7 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4475, allocations: 1.969 kB / 373.7 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005054/0.448, allocations: 205.5 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007827/0.4488, allocations: 96.09 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006921/0.4557, allocations: 4.403 MB / 378.4 MB, free: 21.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.4561, allocations: 0.8206 MB / 379.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003197/0.4564, allocations: 63.27 kB / 379.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.4566, allocations: 141.5 kB / 379.4 MB, free: 20.64 MB / 302.1 MB Notification: Performance of SimCode: time 2.965e-06/0.4566, allocations: 0 / 379.4 MB, free: 20.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0298/0.4864, allocations: 8.008 MB / 387.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.4866, allocations: 219.2 kB / 387.6 MB, free: 18.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/2.74, allocations: 0 / 387.6 MB, free: 18.22 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches