Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.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.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",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.00537/0.00537, allocations: 99.27 kB / 15.73 MB, free: 6.012 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.001213/0.001213, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.474/1.474, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06252/0.06252, allocations: 10.73 MB / 280.6 MB, free: 10.39 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.001754/0.001754, allocations: 68.47 kB / 390.4 MB, free: 5.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3129, allocations: 49.02 MB / 439.4 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003208/0.3162, allocations: 1.764 MB / 441.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3175, allocations: 0.6261 MB / 441.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.3177, allocations: 10.75 kB / 441.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.3179, allocations: 19.44 kB / 441.8 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.318, allocations: 36.34 kB / 441.8 MB, free: 3.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.3183, allocations: 88.05 kB / 441.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.3186, allocations: 210 kB / 442.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.3188, allocations: 37.73 kB / 442.2 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.3189, allocations: 88.66 kB / 442.2 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.3191, allocations: 88.84 kB / 442.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.3191, allocations: 15.12 kB / 442.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.494e-05/0.3192, allocations: 15.12 kB / 442.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.039e-05/0.3192, allocations: 42.59 kB / 442.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.3194, allocations: 76.95 kB / 442.5 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.3196, allocations: 179.4 kB / 442.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3196, allocations: 0 / 442.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3197, allocations: 0 / 442.6 MB, free: 2.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.3197, allocations: 0.75 kB / 442.6 MB, free: 2.953 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001138/0.3208, allocations: 0.5724 MB / 443.2 MB, free: 2.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.3209, allocations: 13.8 kB / 443.2 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.427e-05/0.3209, allocations: 45.02 kB / 443.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.594e-05/0.321, allocations: 27.78 kB / 443.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.3214, allocations: 268.4 kB / 443.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.119e-05/0.3215, allocations: 69.17 kB / 443.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.455e-05/0.3215, allocations: 17.59 kB / 443.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.3221, allocations: 192.4 kB / 443.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.3221, allocations: 0 / 443.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.3221, allocations: 6.359 kB / 443.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3221, allocations: 3.125 kB / 443.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006286/0.3228, allocations: 150 kB / 444 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3238, allocations: 0.6358 MB / 444.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006464/0.3245, allocations: 158.8 kB / 444.8 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003143/0.3248, allocations: 84.41 kB / 444.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3248, allocations: 6.062 kB / 444.9 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004857/0.3253, allocations: 160.1 kB / 445 MB, free: 1.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.254e-06/0.3253, allocations: 1.312 kB / 445 MB, free: 1.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001086/0.3264, allocations: 296.2 kB / 445.3 MB, free: 1.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.3265, allocations: 60.53 kB / 445.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002139/0.3267, allocations: 200.6 kB / 445.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.3267, allocations: 36.86 kB / 445.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.958e-05/0.3268, allocations: 135.6 kB / 445.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.3268, allocations: 36.66 kB / 445.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.515e-05/0.3269, allocations: 52.75 kB / 445.8 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.793e-05/0.327, allocations: 328.2 kB / 446.2 MB, free: 428 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.3274, allocations: 87.34 kB / 446.2 MB, free: 412 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.3277, allocations: 150 kB / 446.4 MB, free: 320 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006394/0.3284, allocations: 265.8 kB / 446.6 MB, free: 148 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3284, allocations: 5.438 kB / 446.6 MB, free: 144 kB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008694/0.3293, allocations: 340.4 kB / 447 MB, free: 15.97 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.87e-05/0.3293, allocations: 64.97 kB / 447 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3293, allocations: 2.156 kB / 447 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3294, allocations: 3.359 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004227/0.3298, allocations: 62.17 kB / 447.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.3298, allocations: 2.562 kB / 447.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002931/0.3301, allocations: 45.39 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.3302, allocations: 11.41 kB / 447.2 MB, free: 15.88 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001306/0.3303, allocations: 134.1 kB / 447.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.3303, allocations: 23.09 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.3304, allocations: 20.83 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.3304, allocations: 5.406 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.3304, allocations: 1.656 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3304, allocations: 5.094 kB / 447.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002823/0.3307, allocations: 244.5 kB / 447.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3307, allocations: 7.938 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004242/0.3312, allocations: 51.2 kB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3312, allocations: 1.859 kB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.3312, allocations: 6.75 kB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3312, allocations: 1.344 kB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3312, allocations: 0 / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.3324, allocations: 346.5 kB / 448 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.254e-05/0.3324, allocations: 97.31 kB / 448.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.3325, allocations: 6.312 kB / 448.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.3327, allocations: 33.14 kB / 448.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.3329, allocations: 30.05 kB / 448.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.3329, allocations: 3.438 kB / 448.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001555/0.333, allocations: 147.2 kB / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.333, allocations: 0 / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.3333, allocations: 38.78 kB / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001426/0.3348, allocations: 0.8868 MB / 449.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008447/0.3356, allocations: 317.7 kB / 449.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3356, allocations: 4.062 kB / 449.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000347/0.336, allocations: 98.78 kB / 449.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.3363, allocations: 25.42 kB / 449.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.3402, allocations: 2.304 MB / 452 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.3406, allocations: 0.7271 MB / 452.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.3407, allocations: 24.2 kB / 452.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.3409, allocations: 51.45 kB / 452.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3409, allocations: 3.938 kB / 452.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02803/0.3689, allocations: 4.345 MB / 457.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.305, allocations: 1.156 kB / 457.1 MB, free: 9.188 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI_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_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1)