Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 195.6 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008184/0.0008184, allocations: 102.5 kB / 296.7 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002331/0.0002333, allocations: 7.984 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2247, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002454/0.2272, allocations: 2.647 MB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2286, allocations: 0.949 MB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.2289, allocations: 11.94 kB / 411.7 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003021/0.2292, allocations: 60.02 kB / 411.8 MB, free: 24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.2294, allocations: 77.62 kB / 411.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.2298, allocations: 179.8 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.2302, allocations: 471 kB / 412.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002317/0.2304, allocations: 153.2 kB / 412.7 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.2305, allocations: 147.3 kB / 412.8 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.2307, allocations: 175 kB / 413 MB, free: 22.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.297e-05/0.2308, allocations: 20 kB / 413 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.235e-05/0.2308, allocations: 16 kB / 413 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.03e-05/0.2309, allocations: 67.69 kB / 413.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.231, allocations: 196.7 kB / 413.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.2312, allocations: 348.3 kB / 413.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2312, allocations: 0 / 413.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2313, allocations: 0 / 413.6 MB, free: 22.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2313, allocations: 0 / 413.6 MB, free: 22.18 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.0009928/0.2323, allocations: 0.7134 MB / 414.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.2323, allocations: 12.03 kB / 414.3 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.2324, allocations: 74.72 kB / 414.4 MB, free: 21.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.2325, allocations: 48.38 kB / 414.4 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.2328, allocations: 355.7 kB / 414.8 MB, free: 20.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.2328, allocations: 29.38 kB / 414.8 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.2329, allocations: 40.38 kB / 414.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007383/0.2336, allocations: 470.5 kB / 415.3 MB, free: 20.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2337, allocations: 11.89 kB / 415.3 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.2337, allocations: 19.94 kB / 415.4 MB, free: 20.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.2337, allocations: 8 kB / 415.4 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009009/0.2346, allocations: 423.6 kB / 415.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.2363, allocations: 1.571 MB / 417.3 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007034/0.237, allocations: 338.8 kB / 417.7 MB, free: 17.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003882/0.2374, allocations: 192.7 kB / 417.9 MB, free: 17.69 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.2375, allocations: 3.984 kB / 417.9 MB, free: 17.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.2375, allocations: 38.56 kB / 417.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.572e-06/0.2375, allocations: 0 / 417.9 MB, free: 17.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.00286/0.2404, allocations: 1.511 MB / 419.4 MB, free: 16.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.2404, allocations: 85.09 kB / 419.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/0.2407, allocations: 345.7 kB / 419.8 MB, free: 15.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.2407, allocations: 33.7 kB / 419.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.2408, allocations: 243.8 kB / 420.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.265e-05/0.2409, allocations: 122.3 kB / 420.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.752e-05/0.2409, allocations: 8 kB / 420.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.893e-05/0.241, allocations: 354.7 kB / 420.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.2414, allocations: 188.7 kB / 420.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.2419, allocations: 268.8 kB / 421 MB, free: 14.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008038/0.2427, allocations: 437.1 kB / 421.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2427, allocations: 4 kB / 421.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009767/0.2437, allocations: 0.5125 MB / 422 MB, free: 13.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.591e-05/0.2437, allocations: 160.3 kB / 422.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.2437, allocations: 4 kB / 422.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.2438, allocations: 4 kB / 422.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008619/0.2446, allocations: 259.7 kB / 422.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.2459, allocations: 1.552 MB / 423.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.2462, allocations: 43.97 kB / 424 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.2463, allocations: 16.06 kB / 424 MB, free: 11.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.989e-06/0.2463, allocations: 7.938 kB / 424 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008647/0.2472, allocations: 450.8 kB / 424.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.2472, allocations: 0 / 424.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-06/0.2472, allocations: 4 kB / 424.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.2476, allocations: 127.9 kB / 424.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.2476, allocations: 4 kB / 424.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002623/0.2479, allocations: 48.05 kB / 424.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.2479, allocations: 16 kB / 424.6 MB, free: 10.53 MB / 298.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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000176/0.2481, allocations: 240.9 kB / 424.9 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.391e-05/0.2482, allocations: 39.53 kB / 424.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.14e-05/0.2483, allocations: 56.23 kB / 425 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.2483, allocations: 0 / 425 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2483, allocations: 4 kB / 425 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2483, allocations: 0 / 425 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.2497, allocations: 0.958 MB / 425.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2497, allocations: 4.125 kB / 425.9 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.2501, allocations: 95.88 kB / 426 MB, free: 9.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2501, allocations: 7.938 kB / 426 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.2501, allocations: 8 kB / 426 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2501, allocations: 0 / 426 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.2502, allocations: 8 kB / 426.1 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.2514, allocations: 0.7322 MB / 426.8 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.724e-05/0.2515, allocations: 132.7 kB / 426.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.2516, allocations: 11.94 kB / 426.9 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.2518, allocations: 55.83 kB / 427 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.074e-05/0.2519, allocations: 27.91 kB / 427 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.252, allocations: 12.12 kB / 427 MB, free: 8.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001837/0.2521, allocations: 247.2 kB / 427.3 MB, free: 7.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2522, allocations: 0 / 427.3 MB, free: 7.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004583/0.2526, allocations: 136 kB / 427.4 MB, free: 7.656 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001421/0.254, allocations: 1.282 MB / 428.7 MB, free: 6.332 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.2558, allocations: 0.7929 MB / 429.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2558, allocations: 0 / 429.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.2562, allocations: 208.1 kB / 429.7 MB, free: 5.336 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.2569, allocations: 92.11 kB / 429.8 MB, free: 5.254 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003763/0.2607, allocations: 2.821 MB / 432.6 MB, free: 2.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.2609, allocations: 0.8236 MB / 433.4 MB, free: 1.484 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.2611, allocations: 143.4 kB / 433.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.2611, allocations: 0 / 433.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.096/3.357, allocations: 6.782 MB / 440.3 MB, free: 10.55 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches