Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 175.4 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006833/0.0006833, allocations: 81.42 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002967, allocations: 8 kB / 327.6 MB, free: 15.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2471, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002906/0.25, allocations: 2.655 MB / 377.8 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.2518, allocations: 0.9565 MB / 378.8 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.252, allocations: 17.03 kB / 378.8 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000321/0.2524, allocations: 63.58 kB / 378.9 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.2526, allocations: 86.86 kB / 379 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004891/0.2531, allocations: 166.9 kB / 379.1 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004392/0.2535, allocations: 480 kB / 379.6 MB, free: 42.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/0.2538, allocations: 156.9 kB / 379.7 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.254, allocations: 156 kB / 379.9 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.2542, allocations: 165.7 kB / 380.1 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.862e-05/0.2542, allocations: 15.59 kB / 380.1 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.207e-05/0.2543, allocations: 15.34 kB / 380.1 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.489e-05/0.2544, allocations: 76.31 kB / 380.2 MB, free: 41.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001408/0.2545, allocations: 202.6 kB / 380.4 MB, free: 41.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002824/0.2548, allocations: 345.2 kB / 380.7 MB, free: 41.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2548, allocations: 0 / 380.7 MB, free: 41.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.2548, allocations: 5.031 kB / 380.7 MB, free: 41.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.2548, allocations: 0 / 380.7 MB, free: 41.23 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.001085/0.2559, allocations: 0.7183 MB / 381.4 MB, free: 40.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.256, allocations: 9.812 kB / 381.4 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.417e-05/0.2561, allocations: 69.84 kB / 381.5 MB, free: 40.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.962e-05/0.2562, allocations: 54.91 kB / 381.6 MB, free: 40.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.2566, allocations: 356.5 kB / 381.9 MB, free: 40.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.2566, allocations: 28.5 kB / 381.9 MB, free: 40.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.335e-05/0.2567, allocations: 45.16 kB / 382 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008692/0.2575, allocations: 474 kB / 382.4 MB, free: 39.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.2576, allocations: 1.344 kB / 382.4 MB, free: 39.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.2576, allocations: 15.09 kB / 382.5 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.2576, allocations: 9.062 kB / 382.5 MB, free: 39.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009645/0.2586, allocations: 419.7 kB / 382.9 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.2604, allocations: 1.585 MB / 384.5 MB, free: 38.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008044/0.2612, allocations: 343.8 kB / 384.8 MB, free: 38.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.2616, allocations: 188.1 kB / 385 MB, free: 38.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.2617, allocations: 3.219 kB / 385 MB, free: 38.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.2617, allocations: 36.78 kB / 385 MB, free: 38.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.562e-06/0.2617, allocations: 0 / 385 MB, free: 38.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002961/0.2646, allocations: 1.525 MB / 386.5 MB, free: 36.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.2647, allocations: 81.11 kB / 386.6 MB, free: 36.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.265, allocations: 365.5 kB / 387 MB, free: 36.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.265, allocations: 33.64 kB / 387 MB, free: 36.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.2651, allocations: 239.9 kB / 387.2 MB, free: 36.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.639e-05/0.2652, allocations: 122.4 kB / 387.4 MB, free: 36.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.842e-05/0.2652, allocations: 8 kB / 387.4 MB, free: 36.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.2653, allocations: 354.7 kB / 387.7 MB, free: 35.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.2657, allocations: 184.8 kB / 387.9 MB, free: 35.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.2661, allocations: 272.8 kB / 388.2 MB, free: 35.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007678/0.2669, allocations: 428.3 kB / 388.6 MB, free: 34.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2669, allocations: 4 kB / 388.6 MB, free: 34.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009228/0.2678, allocations: 0.5247 MB / 389.1 MB, free: 34.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.2679, allocations: 148 kB / 389.3 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2679, allocations: 4 kB / 389.3 MB, free: 34.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.2679, allocations: 4 kB / 389.3 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008162/0.2687, allocations: 263.7 kB / 389.5 MB, free: 33.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.2699, allocations: 1.548 MB / 391.1 MB, free: 32.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003024/0.2702, allocations: 43.95 kB / 391.1 MB, free: 32.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.2702, allocations: 16 kB / 391.1 MB, free: 32.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.509e-06/0.2703, allocations: 4.062 kB / 391.1 MB, free: 32.11 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007859/0.271, allocations: 443.7 kB / 391.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.2711, allocations: 12.02 kB / 391.6 MB, free: 31.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.527e-06/0.2711, allocations: 4 kB / 391.6 MB, free: 31.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.2715, allocations: 123.9 kB / 391.7 MB, free: 31.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.2715, allocations: 4 kB / 391.7 MB, free: 31.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.2718, allocations: 47.95 kB / 391.7 MB, free: 31.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.2718, allocations: 16 kB / 391.8 MB, free: 31.48 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.0001458/0.272, allocations: 240.9 kB / 392 MB, free: 31.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.297e-05/0.272, allocations: 43.47 kB / 392 MB, free: 31.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.191e-05/0.2721, allocations: 52.23 kB / 392.1 MB, free: 31.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.2721, allocations: 4 kB / 392.1 MB, free: 31.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2721, allocations: 4 kB / 392.1 MB, free: 31.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2721, allocations: 0 / 392.1 MB, free: 31.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.2735, allocations: 0.9611 MB / 393.1 MB, free: 30.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2735, allocations: 0 / 393.1 MB, free: 30.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003913/0.2739, allocations: 100 kB / 393.2 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2739, allocations: 7.938 kB / 393.2 MB, free: 30 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.2739, allocations: 8 kB / 393.2 MB, free: 29.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2739, allocations: 0 / 393.2 MB, free: 29.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2739, allocations: 4 kB / 393.2 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.2752, allocations: 0.7414 MB / 393.9 MB, free: 29.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.2753, allocations: 136.7 kB / 394.1 MB, free: 29.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.102e-05/0.2753, allocations: 8.062 kB / 394.1 MB, free: 29.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/0.2756, allocations: 55.95 kB / 394.1 MB, free: 29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/0.2757, allocations: 19.97 kB / 394.1 MB, free: 28.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.2757, allocations: 12 kB / 394.1 MB, free: 28.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001919/0.2759, allocations: 247.2 kB / 394.4 MB, free: 28.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2759, allocations: 0 / 394.4 MB, free: 28.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004742/0.2764, allocations: 144 kB / 394.5 MB, free: 28.59 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.001399/0.2778, allocations: 1.281 MB / 395.8 MB, free: 27.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.2795, allocations: 0.79 MB / 396.6 MB, free: 26.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2795, allocations: 4 kB / 396.6 MB, free: 26.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003987/0.2799, allocations: 204.1 kB / 396.8 MB, free: 26.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006431/0.2806, allocations: 88.5 kB / 396.9 MB, free: 26.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.2843, allocations: 2.859 MB / 399.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.2845, allocations: 0.8234 MB / 400.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001901/0.2847, allocations: 147.4 kB / 400.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2847, allocations: 0 / 400.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.129/3.414, allocations: 6.873 MB / 407.6 MB, free: 15.37 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches