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.001054/0.001054, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001063/0.001063, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.267/1.267, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001253/0.001253, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07498/0.07624, allocations: 46.63 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004005/0.08029, allocations: 3.114 MB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.08188, allocations: 1.013 MB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.08208, allocations: 15.94 kB / 378.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003259/0.08242, allocations: 91.17 kB / 378.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.08265, allocations: 103.1 kB / 379 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004943/0.08316, allocations: 231.6 kB / 379.2 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1584/0.2416, allocations: 0.5195 MB / 379.7 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004118/0.242, allocations: 171 kB / 379.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003319/0.2424, allocations: 193 kB / 380.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.2426, allocations: 211.5 kB / 380.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.618e-05/0.2427, allocations: 43.84 kB / 380.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.141e-05/0.2428, allocations: 41.25 kB / 380.4 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.766e-05/0.2429, allocations: 99.78 kB / 380.5 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.243, allocations: 220.3 kB / 380.7 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005286/0.2436, allocations: 0.4902 MB / 381.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2436, allocations: 1 kB / 381.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2436, allocations: 0 / 381.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.2436, allocations: 3.438 kB / 381.2 MB, free: 9.023 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.00114/0.2447, allocations: 0.766 MB / 381.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.2448, allocations: 9.422 kB / 381.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.127e-05/0.2449, allocations: 78.2 kB / 382 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.227e-05/0.245, allocations: 53.12 kB / 382.1 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.2455, allocations: 383.2 kB / 382.4 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.2455, allocations: 26.88 kB / 382.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.312e-05/0.2456, allocations: 42.56 kB / 382.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009189/0.2465, allocations: 446.2 kB / 383 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.2466, allocations: 11.92 kB / 383 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.2466, allocations: 12.88 kB / 383 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.2466, allocations: 13.22 kB / 383 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009746/0.2476, allocations: 376.7 kB / 383.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.2494, allocations: 1.56 MB / 384.9 MB, free: 7.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007713/0.2501, allocations: 310.3 kB / 385.2 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.2506, allocations: 171.4 kB / 385.4 MB, free: 7.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.2506, allocations: 7.531 kB / 385.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.367e-05/0.2506, allocations: 33.09 kB / 385.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.432e-06/0.2506, allocations: 0 / 385.4 MB, free: 7.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00299/0.2536, allocations: 1.389 MB / 386.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.2537, allocations: 80.36 kB / 386.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.254, allocations: 366.1 kB / 387.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.254, allocations: 31.23 kB / 387.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.2542, allocations: 245 kB / 387.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.2542, allocations: 116.5 kB / 387.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.2543, allocations: 76.75 kB / 387.7 MB, free: 5.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.653e-05/0.2544, allocations: 349 kB / 388.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.2549, allocations: 174.1 kB / 388.2 MB, free: 5.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/0.2554, allocations: 254.5 kB / 388.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008533/0.2562, allocations: 400.3 kB / 388.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2562, allocations: 0.7812 kB / 388.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00107/0.2573, allocations: 489.3 kB / 389.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2573, allocations: 7.719 kB / 389.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2574, allocations: 1.125 kB / 389.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.2574, allocations: 5.594 kB / 389.4 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008889/0.2583, allocations: 212.3 kB / 389.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.2597, allocations: 1.573 MB / 391.1 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003162/0.26, allocations: 41.88 kB / 391.2 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.26, allocations: 18.61 kB / 391.2 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004865/0.2605, allocations: 272.2 kB / 391.5 MB, free: 3.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004373/0.261, allocations: 245.9 kB / 391.7 MB, free: 3.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007406/0.2617, allocations: 368 kB / 392.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.2617, allocations: 0 / 392.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009484/0.2627, allocations: 464.2 kB / 392.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.187e-06/0.2627, allocations: 8.703 kB / 392.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2627, allocations: 6.656 kB / 392.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.565e-06/0.2627, allocations: 4 kB / 392.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.2632, allocations: 116.8 kB / 392.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.2632, allocations: 9.031 kB / 392.7 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.2636, allocations: 34.84 kB / 392.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.512e-05/0.2636, allocations: 16.42 kB / 392.7 MB, free: 2.777 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 9.352e-05/0.2637, allocations: 215.6 kB / 392.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.163e-05/0.2638, allocations: 37.81 kB / 393 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.217e-05/0.2638, allocations: 48.94 kB / 393 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.2639, allocations: 7.438 kB / 393 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2639, allocations: 0 / 393 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.2639, allocations: 2.062 kB / 393 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001534/0.2654, allocations: 0.9204 MB / 393.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2654, allocations: 128 / 393.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.2659, allocations: 89.33 kB / 394 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.2659, allocations: 2.625 kB / 394 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.2659, allocations: 7.688 kB / 394 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2659, allocations: 2.594 kB / 394 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2659, allocations: 1.766 kB / 394 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.2673, allocations: 0.6714 MB / 394.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.2674, allocations: 136.4 kB / 394.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.2675, allocations: 17.02 kB / 394.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.2678, allocations: 31 kB / 394.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.251e-05/0.2679, allocations: 30.55 kB / 394.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2679, allocations: 6.594 kB / 394.9 MB, free: 1.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00027/0.2682, allocations: 252.4 kB / 395.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2682, allocations: 0 / 395.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005704/0.2688, allocations: 138.5 kB / 395.3 MB, free: 1.332 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.001597/0.2704, allocations: 1.21 MB / 396.5 MB, free: 476 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001881/0.2723, allocations: 0.69 MB / 397.2 MB, free: 324 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.2723, allocations: 0 / 397.2 MB, free: 324 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004512/0.2728, allocations: 187.5 kB / 397.4 MB, free: 276 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006405/0.2734, allocations: 100.9 kB / 397.5 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006386/0.2798, allocations: 4.03 MB / 401.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.2802, allocations: 0.8161 MB / 402.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002812/0.2805, allocations: 67.03 kB / 402.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002191/0.2807, allocations: 142.2 kB / 402.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2807, allocations: 0 / 402.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03118/0.3119, allocations: 8.806 MB / 411.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.19, allocations: 1.5 kB / 411.3 MB, free: 9.109 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