Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002182/0.002182, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.899/1.899, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.86 kB / 307 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07943/0.08064, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004102/0.08478, allocations: 3.126 MB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.08638, allocations: 0.9933 MB / 361.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001843/0.08658, allocations: 15.94 kB / 361.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002973/0.08689, allocations: 83.19 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.08713, allocations: 103.1 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.08762, allocations: 231.3 kB / 362.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.08808, allocations: 0.5107 MB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002691/0.08835, allocations: 173.2 kB / 362.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.08855, allocations: 195.2 kB / 363 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.08877, allocations: 203 kB / 363.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-05/0.08884, allocations: 44 kB / 363.2 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.281e-05/0.08891, allocations: 40 kB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.08902, allocations: 107.6 kB / 363.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001675/0.08919, allocations: 214.8 kB / 363.6 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003924/0.08959, allocations: 482.5 kB / 364 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.08961, allocations: 4 kB / 364 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.08961, allocations: 3.938 kB / 364 MB, free: 7.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.08962, allocations: 0 / 364 MB, free: 7.473 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.001221/0.09085, allocations: 0.7639 MB / 364.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.09089, allocations: 8.031 kB / 364.8 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.159e-05/0.09099, allocations: 70.72 kB / 364.9 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.96e-05/0.09108, allocations: 56.38 kB / 364.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.09149, allocations: 359.7 kB / 365.3 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.09153, allocations: 33.31 kB / 365.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.09159, allocations: 40.31 kB / 365.4 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008455/0.09244, allocations: 459.4 kB / 365.8 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.09248, allocations: 11.84 kB / 365.8 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.09252, allocations: 12 kB / 365.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.09253, allocations: 12 kB / 365.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009778/0.09352, allocations: 375.6 kB / 366.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.09554, allocations: 1.571 MB / 367.8 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008017/0.09636, allocations: 312.3 kB / 368.1 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004401/0.09681, allocations: 168.7 kB / 368.3 MB, free: 3.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.09685, allocations: 4 kB / 368.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.09688, allocations: 34.56 kB / 368.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.09688, allocations: 0 / 368.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003199/0.1001, allocations: 1.385 MB / 369.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.1002, allocations: 110.8 kB / 369.8 MB, free: 1.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000335/0.1005, allocations: 353.6 kB / 370.1 MB, free: 1.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.1005, allocations: 33.64 kB / 370.2 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1007, allocations: 243.9 kB / 370.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.839e-05/0.1008, allocations: 114.5 kB / 370.5 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.1009, allocations: 82.03 kB / 370.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.101, allocations: 358.7 kB / 370.9 MB, free: 184 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004617/0.1015, allocations: 170.5 kB / 371.1 MB, free: 8 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1322/0.2337, allocations: 249.8 kB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009092/0.2347, allocations: 393.7 kB / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2347, allocations: 0 / 371.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001135/0.2358, allocations: 489 kB / 372.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2359, allocations: 5.594 kB / 372.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2359, allocations: 5.188 kB / 372.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.2359, allocations: 5.109 kB / 372.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009257/0.2368, allocations: 217 kB / 372.4 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.2381, allocations: 1.569 MB / 374 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.2385, allocations: 40.92 kB / 374.1 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.2385, allocations: 13 kB / 374.1 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005185/0.2391, allocations: 274.6 kB / 374.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004296/0.2395, allocations: 240.5 kB / 374.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007936/0.2403, allocations: 375.4 kB / 374.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.525e-06/0.2403, allocations: 4.578 kB / 374.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009699/0.2413, allocations: 471.8 kB / 375.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.2413, allocations: 6.203 kB / 375.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2413, allocations: 6.688 kB / 375.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.398e-06/0.2413, allocations: 8.062 kB / 375.4 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004753/0.2418, allocations: 116.6 kB / 375.5 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.2418, allocations: 8.781 kB / 375.5 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.2422, allocations: 35.77 kB / 375.6 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.16e-05/0.2422, allocations: 11.61 kB / 375.6 MB, free: 18.18 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 9.766e-05/0.2423, allocations: 215.8 kB / 375.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.207e-05/0.2424, allocations: 41.31 kB / 375.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.97e-05/0.2424, allocations: 47.19 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2424, allocations: 6.75 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2425, allocations: 1.375 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2425, allocations: 1.641 kB / 375.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.244, allocations: 0.921 MB / 376.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.244, allocations: 1.031 kB / 376.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004198/0.2444, allocations: 83.81 kB / 376.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2444, allocations: 3.062 kB / 376.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.126e-05/0.2445, allocations: 11.8 kB / 376.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.2445, allocations: 1.688 kB / 376.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2445, allocations: 1.594 kB / 376.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.2458, allocations: 0.6779 MB / 377.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.2459, allocations: 133.5 kB / 377.7 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.909e-05/0.246, allocations: 9.125 kB / 377.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003128/0.2463, allocations: 35.53 kB / 377.8 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.2464, allocations: 32.28 kB / 377.8 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2464, allocations: 7.969 kB / 377.8 MB, free: 16.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002201/0.2466, allocations: 249.2 kB / 378.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2466, allocations: 4 kB / 378.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005177/0.2471, allocations: 133.4 kB / 378.2 MB, free: 16.76 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.001485/0.2486, allocations: 1.211 MB / 379.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001902/0.2506, allocations: 0.7096 MB / 380.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2506, allocations: 0 / 380.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004502/0.251, allocations: 185.6 kB / 380.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.2517, allocations: 113.2 kB / 380.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005349/0.257, allocations: 4.037 MB / 384.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.2573, allocations: 0.8198 MB / 385.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.2576, allocations: 58.03 kB / 385.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.2577, allocations: 145.7 kB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2577, allocations: 1.219 kB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.2844, allocations: 8.531 MB / 394 MB, free: 9.164 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.06, allocations: 5.625 kB / 394 MB, free: 9.164 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv","/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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches