Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",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.006258/0.006258, allocations: 97.27 kB / 15.73 MB, free: 6.051 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.001167/0.001167, allocations: 194.8 kB / 16.67 MB, free: 5.977 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.391/1.391, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06046/0.06046, allocations: 10.74 MB / 280.7 MB, free: 10.41 MB / 238.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.001477/0.001477, allocations: 68.12 kB / 390.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3362, allocations: 49.03 MB / 439.4 MB, free: 5.098 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter Input.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002946/0.3392, allocations: 1.718 MB / 441.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009663/0.3402, allocations: 0.5941 MB / 441.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.826e-05/0.3403, allocations: 6.094 kB / 441.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001068/0.3404, allocations: 15.94 kB / 441.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.181e-05/0.3405, allocations: 30.89 kB / 441.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002586/0.3407, allocations: 68.17 kB / 441.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002786/0.341, allocations: 185.1 kB / 442 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.3412, allocations: 32.05 kB / 442 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.3413, allocations: 77.09 kB / 442.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.3414, allocations: 67.5 kB / 442.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/0.3415, allocations: 12.47 kB / 442.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.655e-05/0.3415, allocations: 11.66 kB / 442.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.379e-05/0.3416, allocations: 40.59 kB / 442.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.853e-05/0.3417, allocations: 65.61 kB / 442.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.3419, allocations: 138.3 kB / 442.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3419, allocations: 0 / 442.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3419, allocations: 1.375 kB / 442.4 MB, free: 3.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3419, allocations: 3.938 kB / 442.4 MB, free: 3.086 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009273/0.3429, allocations: 0.5038 MB / 442.9 MB, free: 2.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3429, allocations: 14.33 kB / 442.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.3429, allocations: 45.22 kB / 443 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.343, allocations: 24.98 kB / 443 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.3433, allocations: 251.8 kB / 443.3 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.3434, allocations: 62.88 kB / 443.3 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.3434, allocations: 11.25 kB / 443.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.3438, allocations: 127.3 kB / 443.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.3438, allocations: 2.031 kB / 443.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.3438, allocations: 4 kB / 443.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.3438, allocations: 2.75 kB / 443.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004803/0.3443, allocations: 127 kB / 443.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007243/0.3451, allocations: 432.6 kB / 444 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.3455, allocations: 130 kB / 444.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.3458, allocations: 67.7 kB / 444.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.3458, allocations: 2.203 kB / 444.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003488/0.3461, allocations: 124.7 kB / 444.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.492e-06/0.3462, allocations: 0 / 444.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008127/0.347, allocations: 240.7 kB / 444.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.347, allocations: 53.5 kB / 444.6 MB, free: 1.551 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3472, allocations: 184.4 kB / 444.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.3472, allocations: 31.08 kB / 444.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.3473, allocations: 125.6 kB / 444.9 MB, free: 1.273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.3473, allocations: 34.91 kB / 445 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.526e-05/0.3474, allocations: 32.64 kB / 445 MB, free: 1.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.3474, allocations: 326.1 kB / 445.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.3477, allocations: 66.98 kB / 445.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.348, allocations: 93.19 kB / 445.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004705/0.3484, allocations: 174.9 kB / 445.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3484, allocations: 0 / 445.7 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005842/0.349, allocations: 227.7 kB / 445.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.3491, allocations: 37.66 kB / 445.9 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3491, allocations: 5.281 kB / 445.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.3491, allocations: 2.141 kB / 445.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.3493, allocations: 34.05 kB / 446 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3493, allocations: 2.094 kB / 446 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.3495, allocations: 36.2 kB / 446 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.3496, allocations: 5.234 kB / 446 MB, free: 0.5781 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 7.935e-05/0.3496, allocations: 126 kB / 446.1 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.3497, allocations: 15.28 kB / 446.1 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.185e-05/0.3497, allocations: 19.7 kB / 446.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.3497, allocations: 2.031 kB / 446.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.3497, allocations: 0 / 446.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3497, allocations: 4.688 kB / 446.2 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.3499, allocations: 227.7 kB / 446.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3499, allocations: 1.438 kB / 446.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.3501, allocations: 22.62 kB / 446.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3501, allocations: 3.938 kB / 446.4 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.3501, allocations: 5.922 kB / 446.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.3501, allocations: 2.281 kB / 446.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3501, allocations: 0 / 446.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.3507, allocations: 202.2 kB / 446.6 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.984e-05/0.3507, allocations: 98.14 kB / 446.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.3508, allocations: 6.234 kB / 446.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001737/0.3509, allocations: 23.27 kB / 446.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.351, allocations: 21.62 kB / 446.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.351, allocations: 3.172 kB / 446.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.3512, allocations: 129.9 kB / 446.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3512, allocations: 0 / 446.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00022/0.3514, allocations: 23.66 kB / 446.9 MB, free: 15.88 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008638/0.3523, allocations: 0.7456 MB / 447.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006044/0.3529, allocations: 211.5 kB / 447.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3529, allocations: 1.438 kB / 447.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.3532, allocations: 70.53 kB / 447.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.3534, allocations: 28.12 kB / 448 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002887/0.3563, allocations: 1.934 MB / 449.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.3566, allocations: 0.7113 MB / 450.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.641e-05/0.3567, allocations: 16.39 kB / 450.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.062e-05/0.3568, allocations: 51.59 kB / 450.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3568, allocations: 0 / 450.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.3784, allocations: 3.465 MB / 454.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/8.649, allocations: 21.22 kB / 454.2 MB, free: 11 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1)