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.001582/0.001582, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001683/0.001683, allocations: 187 kB / 18.67 MB, free: 4.387 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.302/1.302, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001142/0.001142, allocations: 60.39 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07555/0.0767, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004229/0.08097, allocations: 3.125 MB / 377.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.08286, allocations: 1.006 MB / 378.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003429/0.08324, allocations: 19.88 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.08362, allocations: 83.17 kB / 378.9 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003412/0.08398, allocations: 115.1 kB / 379 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006331/0.08462, allocations: 231.6 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1561/0.2407, allocations: 0.5128 MB / 379.7 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004186/0.2412, allocations: 173.3 kB / 379.9 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.2416, allocations: 200.2 kB / 380.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.2418, allocations: 210.5 kB / 380.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.052e-05/0.2419, allocations: 41.12 kB / 380.3 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.616e-05/0.242, allocations: 41.06 kB / 380.4 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.2421, allocations: 105.5 kB / 380.5 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.2422, allocations: 213.7 kB / 380.7 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000558/0.2428, allocations: 0.4984 MB / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2428, allocations: 0 / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.2428, allocations: 0.5625 kB / 381.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.2428, allocations: 3.938 kB / 381.2 MB, free: 9.039 MB / 318.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.001176/0.244, allocations: 0.78 MB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2441, allocations: 8.938 kB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.318e-05/0.2442, allocations: 73.95 kB / 382 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.2443, allocations: 58.09 kB / 382.1 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000544/0.2448, allocations: 382 kB / 382.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.2449, allocations: 29.28 kB / 382.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.236e-05/0.245, allocations: 39.38 kB / 382.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009774/0.2459, allocations: 451.1 kB / 383 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.246, allocations: 9.391 kB / 383 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.246, allocations: 15.62 kB / 383 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.246, allocations: 9.438 kB / 383 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009848/0.247, allocations: 382.5 kB / 383.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.2489, allocations: 1.568 MB / 385 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007782/0.2497, allocations: 311.5 kB / 385.3 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004141/0.2501, allocations: 161.3 kB / 385.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.2501, allocations: 9.953 kB / 385.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.2501, allocations: 37.36 kB / 385.5 MB, free: 7.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.003e-06/0.2502, allocations: 4 kB / 385.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003062/0.2532, allocations: 1.387 MB / 386.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.2533, allocations: 82.05 kB / 386.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003454/0.2536, allocations: 361.8 kB / 387.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.2537, allocations: 31.02 kB / 387.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.2538, allocations: 257.3 kB / 387.6 MB, free: 5.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.798e-05/0.2539, allocations: 118.1 kB / 387.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.254, allocations: 80.16 kB / 387.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.521e-05/0.2541, allocations: 353.1 kB / 388.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004684/0.2545, allocations: 168.8 kB / 388.3 MB, free: 5.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.255, allocations: 252.3 kB / 388.5 MB, free: 5.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008671/0.2559, allocations: 396.5 kB / 388.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2559, allocations: 0 / 388.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001094/0.257, allocations: 499.7 kB / 389.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2571, allocations: 5.375 kB / 389.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.2571, allocations: 6.672 kB / 389.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.2571, allocations: 5.469 kB / 389.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009257/0.258, allocations: 209.8 kB / 389.6 MB, free: 4.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/0.2595, allocations: 1.576 MB / 391.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/0.2599, allocations: 33.97 kB / 391.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.2599, allocations: 16.11 kB / 391.2 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005314/0.2604, allocations: 271.9 kB / 391.5 MB, free: 3.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004567/0.2609, allocations: 240.6 kB / 391.7 MB, free: 3.113 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007732/0.2617, allocations: 378.6 kB / 392.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.695e-06/0.2617, allocations: 1.062 kB / 392.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009579/0.2627, allocations: 471.1 kB / 392.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.2627, allocations: 6.906 kB / 392.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.2627, allocations: 2.531 kB / 392.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.18e-06/0.2627, allocations: 4.219 kB / 392.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.2632, allocations: 120.2 kB / 392.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2632, allocations: 8.562 kB / 392.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.2635, allocations: 38.44 kB / 392.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.2636, allocations: 15.91 kB / 392.8 MB, free: 2.73 MB / 318.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.0001191/0.2637, allocations: 214.9 kB / 393 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.526e-05/0.2638, allocations: 38.73 kB / 393 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.5e-05/0.2638, allocations: 48.2 kB / 393.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2639, allocations: 6.844 kB / 393.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.2639, allocations: 4 kB / 393.1 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2639, allocations: 2.906 kB / 393.1 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.2655, allocations: 0.9145 MB / 394 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2655, allocations: 2.047 kB / 394 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00043/0.2659, allocations: 86.89 kB / 394.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.2659, allocations: 2.25 kB / 394.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.266, allocations: 9.172 kB / 394.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.266, allocations: 7.094 kB / 394.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.266, allocations: 1.406 kB / 394.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/0.2674, allocations: 0.6686 MB / 394.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.2675, allocations: 141.7 kB / 394.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/0.2676, allocations: 12.05 kB / 394.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.2679, allocations: 34.52 kB / 395 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.224e-05/0.268, allocations: 23.44 kB / 395 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.268, allocations: 11.03 kB / 395 MB, free: 1.438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002781/0.2683, allocations: 247.3 kB / 395.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2683, allocations: 0 / 395.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005976/0.2689, allocations: 142.8 kB / 395.4 MB, free: 1.285 MB / 318.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.001595/0.2705, allocations: 1.217 MB / 396.6 MB, free: 420 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.2725, allocations: 0.6935 MB / 397.3 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2725, allocations: 3.938 kB / 397.3 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.273, allocations: 182 kB / 397.5 MB, free: 216 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006948/0.2737, allocations: 104.8 kB / 397.6 MB, free: 176 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006183/0.2799, allocations: 4.039 MB / 401.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.2803, allocations: 0.816 MB / 402.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000309/0.2806, allocations: 62.22 kB / 402.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.2808, allocations: 142.4 kB / 402.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2808, allocations: 4 kB / 402.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.3114, allocations: 8.803 MB / 411.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.22, allocations: 1.375 kB / 411.4 MB, free: 9.055 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches