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.005988/0.005988, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001381/0.001381, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.426/1.426, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06796/0.06796, allocations: 10.75 MB / 280.6 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.002276/0.002276, allocations: 63.91 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2767, allocations: 49.02 MB / 439.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002732/0.2795, allocations: 1.722 MB / 441.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2807, allocations: 0.5944 MB / 441.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.2808, allocations: 6.719 kB / 441.7 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.281, allocations: 15.55 kB / 441.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.2811, allocations: 30.12 kB / 441.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.2814, allocations: 64.41 kB / 441.8 MB, free: 3.387 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.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.0003325/0.2818, allocations: 183.9 kB / 442 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.2819, allocations: 43.62 kB / 442 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.2821, allocations: 68.47 kB / 442.1 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.2822, allocations: 75.2 kB / 442.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.2823, allocations: 13.38 kB / 442.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.455e-05/0.2823, allocations: 11.16 kB / 442.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.334e-05/0.2824, allocations: 35.7 kB / 442.2 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.8e-05/0.2824, allocations: 67.16 kB / 442.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.2827, allocations: 139.4 kB / 442.4 MB, free: 3.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2827, allocations: 3.938 kB / 442.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2827, allocations: 0.6562 kB / 442.4 MB, free: 3.078 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2827, allocations: 0 / 442.4 MB, free: 3.078 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.0008651/0.2836, allocations: 0.5037 MB / 442.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2836, allocations: 13.91 kB / 442.9 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.373e-05/0.2836, allocations: 43.55 kB / 443 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.44e-05/0.2837, allocations: 18.91 kB / 443 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.284, allocations: 255.8 kB / 443.2 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.398e-05/0.2841, allocations: 62.12 kB / 443.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.2841, allocations: 7.859 kB / 443.3 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003746/0.2845, allocations: 131.8 kB / 443.4 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.2845, allocations: 0 / 443.4 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.2845, allocations: 5.375 kB / 443.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.2845, allocations: 2.75 kB / 443.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.285, allocations: 122 kB / 443.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007718/0.2858, allocations: 434.2 kB / 444 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004443/0.2862, allocations: 121.2 kB / 444.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002359/0.2865, allocations: 68.27 kB / 444.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.2865, allocations: 5.125 kB / 444.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003463/0.2869, allocations: 128.2 kB / 444.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2869, allocations: 0 / 444.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.000805/0.2877, allocations: 236.3 kB / 444.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.2877, allocations: 58.86 kB / 444.6 MB, free: 1.551 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.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.2879, allocations: 185.9 kB / 444.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.2879, allocations: 26.95 kB / 444.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.392e-05/0.288, allocations: 125.3 kB / 444.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.288, allocations: 34.73 kB / 445 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.707e-05/0.2881, allocations: 39.66 kB / 445 MB, free: 1.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.491e-05/0.2881, allocations: 326.9 kB / 445.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002433/0.2884, allocations: 62.16 kB / 445.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.2886, allocations: 97.17 kB / 445.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004344/0.2891, allocations: 175.8 kB / 445.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2891, allocations: 0 / 445.6 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000563/0.2896, allocations: 222.8 kB / 445.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.2897, allocations: 41.56 kB / 445.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2897, allocations: 1.188 kB / 445.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.2897, allocations: 5.734 kB / 445.9 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.2899, allocations: 31.31 kB / 445.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.2899, allocations: 0.9062 kB / 445.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.2901, allocations: 24.61 kB / 446 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.2901, allocations: 9.109 kB / 446 MB, free: 0.5859 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.504e-05/0.2902, allocations: 123 kB / 446.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.2903, allocations: 22.59 kB / 446.1 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.2903, allocations: 15.61 kB / 446.1 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2903, allocations: 1.594 kB / 446.1 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2903, allocations: 3.938 kB / 446.1 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2903, allocations: 0.7031 kB / 446.1 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.2905, allocations: 233 kB / 446.4 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2905, allocations: 3.938 kB / 446.4 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.2907, allocations: 26.17 kB / 446.4 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2907, allocations: 4.938 kB / 446.4 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.2907, allocations: 10.5 kB / 446.4 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.2907, allocations: 4 kB / 446.4 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2907, allocations: 1.125 kB / 446.4 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005127/0.2912, allocations: 196.1 kB / 446.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.943e-05/0.2913, allocations: 93.59 kB / 446.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.2913, allocations: 6.75 kB / 446.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.2915, allocations: 25.7 kB / 446.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.644e-05/0.2916, allocations: 17.38 kB / 446.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2916, allocations: 3.328 kB / 446.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.2917, allocations: 130.5 kB / 446.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2917, allocations: 0 / 446.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.292, allocations: 27.34 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.0008225/0.2928, allocations: 0.7414 MB / 447.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006135/0.2934, allocations: 203.7 kB / 447.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2935, allocations: 3.938 kB / 447.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002709/0.2937, allocations: 72.25 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.000251/0.294, allocations: 28.31 kB / 448 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.2969, allocations: 1.928 MB / 449.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.2971, allocations: 0.7126 MB / 450.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.834e-05/0.2972, allocations: 16.08 kB / 450.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.887e-05/0.2973, allocations: 42.67 kB / 450.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2973, allocations: 4.812 kB / 450.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02751/0.3249, allocations: 3.542 MB / 454.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.329, allocations: 22.23 kB / 454.2 MB, free: 10.96 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)