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.006286/0.006286, allocations: 99.64 kB / 15.73 MB, free: 6.465 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.001394/0.001394, allocations: 190.8 kB / 16.67 MB, free: 6.379 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.367/1.367, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05598/0.05598, allocations: 10.74 MB / 280.6 MB, free: 10.4 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.001535/0.001535, allocations: 75.23 kB / 390.3 MB, free: 5.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2758, allocations: 49.01 MB / 439.4 MB, free: 5.336 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.002615/0.2785, allocations: 1.73 MB / 441.1 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009106/0.2794, allocations: 0.5916 MB / 441.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.749e-05/0.2795, allocations: 10.22 kB / 441.7 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2796, allocations: 15.88 kB / 441.7 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.4e-05/0.2797, allocations: 30.11 kB / 441.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.2799, allocations: 63.8 kB / 441.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.2802, allocations: 188.1 kB / 442 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.2803, allocations: 39.16 kB / 442 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.2805, allocations: 70.72 kB / 442.1 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.708e-05/0.2806, allocations: 73.92 kB / 442.2 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.2806, allocations: 12.47 kB / 442.2 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.391e-05/0.2807, allocations: 16 kB / 442.2 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.2807, allocations: 31.78 kB / 442.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.752e-05/0.2808, allocations: 67.44 kB / 442.3 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.281, allocations: 138.3 kB / 442.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.281, allocations: 0.6094 kB / 442.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.281, allocations: 0 / 442.4 MB, free: 3.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.281, allocations: 1 kB / 442.4 MB, free: 3.312 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.0008425/0.2818, allocations: 0.5042 MB / 442.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2819, allocations: 13.94 kB / 442.9 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.126e-05/0.2819, allocations: 43.52 kB / 443 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.282, allocations: 21.69 kB / 443 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.2822, allocations: 244 kB / 443.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-05/0.2823, allocations: 62.88 kB / 443.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.2823, allocations: 12.05 kB / 443.3 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.2827, allocations: 139 kB / 443.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2827, allocations: 0 / 443.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.2828, allocations: 6.172 kB / 443.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.2828, allocations: 2.75 kB / 443.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/0.2833, allocations: 121.8 kB / 443.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007071/0.284, allocations: 430.2 kB / 444 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004564/0.2844, allocations: 121.4 kB / 444.1 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002327/0.2847, allocations: 63.45 kB / 444.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.2847, allocations: 1.594 kB / 444.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003505/0.2851, allocations: 140.5 kB / 444.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.532e-06/0.2851, allocations: 1.75 kB / 444.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008208/0.2859, allocations: 234.7 kB / 444.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.2859, allocations: 54.27 kB / 444.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.2861, allocations: 185.1 kB / 444.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.2861, allocations: 26.73 kB / 444.8 MB, free: 1.625 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.2862, allocations: 129.4 kB / 444.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.2862, allocations: 25.84 kB / 445 MB, free: 1.488 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.946e-05/0.2863, allocations: 36.61 kB / 445 MB, free: 1.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.949e-05/0.2863, allocations: 327.3 kB / 445.3 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.2866, allocations: 61.89 kB / 445.4 MB, free: 1.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.2868, allocations: 96.09 kB / 445.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/0.2873, allocations: 180.8 kB / 445.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2873, allocations: 0 / 445.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005861/0.2879, allocations: 235.8 kB / 445.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.2879, allocations: 36.44 kB / 445.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.288, allocations: 1.312 kB / 445.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.288, allocations: 1.656 kB / 445.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.2882, allocations: 30.94 kB / 445.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.2882, allocations: 3.359 kB / 445.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.2884, allocations: 27.14 kB / 446 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.2884, allocations: 4.766 kB / 446 MB, free: 0.8203 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.724e-05/0.2885, allocations: 130.7 kB / 446.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.2885, allocations: 18.56 kB / 446.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.855e-05/0.2886, allocations: 18.91 kB / 446.1 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2886, allocations: 6.5 kB / 446.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2886, allocations: 0 / 446.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.2886, allocations: 1.812 kB / 446.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/0.2888, allocations: 223.5 kB / 446.4 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2888, allocations: 3.938 kB / 446.4 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.2889, allocations: 26.64 kB / 446.4 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2889, allocations: 9.844 kB / 446.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2889, allocations: 1.875 kB / 446.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.289, allocations: 0 / 446.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.289, allocations: 4.75 kB / 446.4 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005467/0.2895, allocations: 199.4 kB / 446.6 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.2896, allocations: 89.88 kB / 446.7 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.2896, allocations: 9.828 kB / 446.7 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.2898, allocations: 27.56 kB / 446.7 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.361e-05/0.2899, allocations: 17.61 kB / 446.8 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.2899, allocations: 6.719 kB / 446.8 MB, free: 208 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.155e-05/0.29, allocations: 126.4 kB / 446.9 MB, free: 120 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.29, allocations: 3.938 kB / 446.9 MB, free: 116 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002234/0.2902, allocations: 28.03 kB / 446.9 MB, free: 112 kB / 318.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.0008558/0.2911, allocations: 0.7418 MB / 447.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006162/0.2917, allocations: 208 kB / 447.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2917, allocations: 0 / 447.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000279/0.292, allocations: 78.33 kB / 447.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.2922, allocations: 25.44 kB / 448 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.2952, allocations: 1.919 MB / 449.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.2955, allocations: 0.7152 MB / 450.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.268e-05/0.2956, allocations: 12.42 kB / 450.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.653e-05/0.2957, allocations: 46.95 kB / 450.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2957, allocations: 0 / 450.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.316, allocations: 3.544 MB / 454.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.863, allocations: 18.28 kB / 454.2 MB, free: 11.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1)