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.006618/0.006618, allocations: 97.66 kB / 15.73 MB, free: 6.059 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.00144/0.00144, allocations: 197.5 kB / 16.68 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.509/1.509, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06494/0.06494, allocations: 10.75 MB / 280.7 MB, free: 10.42 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.002132/0.002132, allocations: 67.91 kB / 390.3 MB, free: 5.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2842, allocations: 49.03 MB / 439.4 MB, free: 5.105 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.003021/0.2872, allocations: 1.721 MB / 441.1 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009645/0.2882, allocations: 0.5968 MB / 441.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.815e-05/0.2883, allocations: 6.344 kB / 441.7 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.2884, allocations: 15.48 kB / 441.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.207e-05/0.2884, allocations: 34.88 kB / 441.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.2887, allocations: 68.03 kB / 441.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.2889, allocations: 178.5 kB / 442 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.289, allocations: 27.45 kB / 442 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2891, allocations: 73 kB / 442.1 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.735e-05/0.2892, allocations: 67.45 kB / 442.2 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/0.2893, allocations: 12.09 kB / 442.2 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.239e-05/0.2893, allocations: 12.72 kB / 442.2 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.2893, allocations: 35.66 kB / 442.2 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.587e-05/0.2894, allocations: 73.53 kB / 442.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.2896, allocations: 139.2 kB / 442.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2896, allocations: 0 / 442.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2896, allocations: 3.938 kB / 442.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.2896, allocations: 0 / 442.4 MB, free: 3.094 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.0008893/0.2905, allocations: 0.5012 MB / 442.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.2905, allocations: 13.48 kB / 442.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.597e-05/0.2906, allocations: 43.89 kB / 443 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.2906, allocations: 31.17 kB / 443 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.2909, allocations: 251.5 kB / 443.3 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/0.2909, allocations: 58.97 kB / 443.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/0.291, allocations: 11.25 kB / 443.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003903/0.2914, allocations: 135.5 kB / 443.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2914, allocations: 0 / 443.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.2914, allocations: 1.984 kB / 443.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2914, allocations: 2.75 kB / 443.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005029/0.2919, allocations: 126.4 kB / 443.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007536/0.2926, allocations: 433.3 kB / 444 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004834/0.2931, allocations: 126.9 kB / 444.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.2934, allocations: 58.91 kB / 444.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.2934, allocations: 1.281 kB / 444.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00039/0.2938, allocations: 133 kB / 444.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.2938, allocations: 0 / 444.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008618/0.2947, allocations: 236 kB / 444.6 MB, free: 1.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.2947, allocations: 62.66 kB / 444.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001534/0.2948, allocations: 179.9 kB / 444.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.2949, allocations: 28.3 kB / 444.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.368e-05/0.2949, allocations: 124.5 kB / 444.9 MB, free: 1.285 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.295, allocations: 29.69 kB / 445 MB, free: 1.262 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.596e-05/0.295, allocations: 37.88 kB / 445 MB, free: 1.234 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.853e-05/0.2951, allocations: 322.1 kB / 445.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.2953, allocations: 67.64 kB / 445.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.2956, allocations: 91.62 kB / 445.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.296, allocations: 176.2 kB / 445.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.296, allocations: 0 / 445.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005915/0.2966, allocations: 231.3 kB / 445.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.2967, allocations: 37.77 kB / 445.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2967, allocations: 1.281 kB / 445.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.2967, allocations: 1.594 kB / 445.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.2969, allocations: 29.75 kB / 445.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2969, allocations: 2.781 kB / 445.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000205/0.2971, allocations: 40.67 kB / 446 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.2971, allocations: 4.25 kB / 446 MB, free: 0.5938 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 8.358e-05/0.2972, allocations: 122.7 kB / 446.1 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.2972, allocations: 15.03 kB / 446.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.382e-05/0.2973, allocations: 22.94 kB / 446.1 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2973, allocations: 6.172 kB / 446.1 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2973, allocations: 0.6094 kB / 446.2 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2973, allocations: 8.484 kB / 446.2 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.2975, allocations: 225.2 kB / 446.4 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2975, allocations: 0 / 446.4 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.2976, allocations: 26.02 kB / 446.4 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2976, allocations: 6.172 kB / 446.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2976, allocations: 0.7031 kB / 446.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2976, allocations: 5.656 kB / 446.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2976, allocations: 0 / 446.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005585/0.2982, allocations: 203.4 kB / 446.6 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/0.2982, allocations: 95.06 kB / 446.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.2983, allocations: 8.359 kB / 446.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.2985, allocations: 23.03 kB / 446.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.431e-05/0.2986, allocations: 17.89 kB / 446.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.2986, allocations: 7.297 kB / 446.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.2987, allocations: 130.4 kB / 446.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2987, allocations: 0 / 446.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002247/0.2989, allocations: 28.73 kB / 446.9 MB, free: 15.89 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.0009672/0.2999, allocations: 0.7409 MB / 447.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006283/0.3005, allocations: 201 kB / 447.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3005, allocations: 4.062 kB / 447.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.3008, allocations: 72.45 kB / 447.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.3011, allocations: 20.69 kB / 448 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.3043, allocations: 1.932 MB / 449.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3047, allocations: 0.7157 MB / 450.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.654e-05/0.3047, allocations: 12.52 kB / 450.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.905e-05/0.3048, allocations: 46.92 kB / 450.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3048, allocations: 0 / 450.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02659/0.3314, allocations: 3.497 MB / 454.2 MB, free: 11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.294/8.626, allocations: 9.141 kB / 454.2 MB, free: 10.99 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)