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.001307/0.001307, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001388/0.001388, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.428/1.428, allocations: 205.1 MB / 222 MB, free: 4.977 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05527/0.05527, allocations: 10.75 MB / 280.1 MB, free: 10.95 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.00131/0.00131, allocations: 71.83 kB / 340 MB, free: 23.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.08059, allocations: 49.02 MB / 389 MB, free: 6.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002727/0.08335, allocations: 1.779 MB / 390.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008373/0.08421, allocations: 0.5854 MB / 391.3 MB, free: 4.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.309e-05/0.0843, allocations: 11.88 kB / 391.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.739e-05/0.0844, allocations: 15.86 kB / 391.4 MB, free: 4.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.118e-05/0.08447, allocations: 23.8 kB / 391.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000187/0.08467, allocations: 55.88 kB / 391.5 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001661/0.08484, allocations: 167.5 kB / 391.6 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.08495, allocations: 37.72 kB / 391.7 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.08507, allocations: 63.7 kB / 391.7 MB, free: 3.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.906e-05/0.08516, allocations: 71.56 kB / 391.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.08519, allocations: 8 kB / 391.8 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.009e-05/0.08522, allocations: 8 kB / 391.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.633e-05/0.08527, allocations: 31.83 kB / 391.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.566e-05/0.08535, allocations: 67.59 kB / 391.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.08549, allocations: 127.5 kB / 392 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.0855, allocations: 0 / 392 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.0855, allocations: 0 / 392 MB, free: 3.566 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.08551, allocations: 0 / 392 MB, free: 3.566 MB / 286.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.0008158/0.08633, allocations: 0.4999 MB / 392.5 MB, free: 3.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.08637, allocations: 8.031 kB / 392.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.08641, allocations: 46.75 kB / 392.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.487e-05/0.08646, allocations: 24.66 kB / 392.6 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.0867, allocations: 239.9 kB / 392.8 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.619e-05/0.08677, allocations: 67.84 kB / 392.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.07e-05/0.0868, allocations: 12.38 kB / 392.9 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.08714, allocations: 133.5 kB / 393 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.08716, allocations: 0 / 393 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.08718, allocations: 8 kB / 393.1 MB, free: 2.422 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.08719, allocations: 4 kB / 393.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.08764, allocations: 115.9 kB / 393.2 MB, free: 2.305 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006858/0.08833, allocations: 432.4 kB / 393.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004124/0.08876, allocations: 122.5 kB / 393.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.08898, allocations: 64.78 kB / 393.8 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.08901, allocations: 4 kB / 393.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003649/0.08938, allocations: 135.1 kB / 393.9 MB, free: 1.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.08939, allocations: 0 / 393.9 MB, free: 1.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007386/0.09013, allocations: 233.6 kB / 394.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.09018, allocations: 59.41 kB / 394.2 MB, free: 1.184 MB / 286.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.000151/0.09034, allocations: 186.8 kB / 394.4 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.09038, allocations: 29.8 kB / 394.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.32e-05/0.09045, allocations: 120.2 kB / 394.5 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.09048, allocations: 35.78 kB / 394.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.752e-05/0.09054, allocations: 33.7 kB / 394.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.09066, allocations: 322.8 kB / 394.9 MB, free: 448 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.09089, allocations: 71.94 kB / 395 MB, free: 376 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.09115, allocations: 95.3 kB / 395.1 MB, free: 268 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.09158, allocations: 173 kB / 395.2 MB, free: 76 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.09159, allocations: 0 / 395.2 MB, free: 76 kB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005468/0.09214, allocations: 231 kB / 395.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.09219, allocations: 41.62 kB / 395.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.0922, allocations: 0 / 395.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.09222, allocations: 4 kB / 395.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.09239, allocations: 23.97 kB / 395.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.09241, allocations: 7.938 kB / 395.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.09259, allocations: 39.91 kB / 395.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.09262, allocations: 4 kB / 395.6 MB, free: 15.71 MB / 302.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 9.172e-05/0.09271, allocations: 125.8 kB / 395.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.752e-05/0.09275, allocations: 11.84 kB / 395.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.09279, allocations: 17.41 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.09279, allocations: 0 / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.0928, allocations: 0 / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.09281, allocations: 8 kB / 395.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.09299, allocations: 221.5 kB / 396 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.093, allocations: 4 kB / 396 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.09314, allocations: 19.97 kB / 396 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.09315, allocations: 7.875 kB / 396 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.09317, allocations: 11.98 kB / 396 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.09317, allocations: 0 / 396 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.09318, allocations: 0 / 396 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005153/0.0937, allocations: 200.8 kB / 396.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.219e-05/0.09375, allocations: 88.92 kB / 396.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.09379, allocations: 11.92 kB / 396.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.09397, allocations: 23.97 kB / 396.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.423e-05/0.09404, allocations: 19.97 kB / 396.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.09406, allocations: 4.094 kB / 396.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.173e-05/0.09415, allocations: 136 kB / 396.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.09415, allocations: 0 / 396.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000206/0.09436, allocations: 35.84 kB / 396.5 MB, free: 14.69 MB / 302.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.0007381/0.09511, allocations: 0.7411 MB / 397.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005075/0.09562, allocations: 203.3 kB / 397.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.09563, allocations: 0 / 397.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.09588, allocations: 71.88 kB / 397.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.09611, allocations: 23.98 kB / 397.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.09859, allocations: 1.958 MB / 399.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.09883, allocations: 0.7123 MB / 400.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.033e-05/0.09891, allocations: 17.08 kB / 400.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.857e-05/0.099, allocations: 43.42 kB / 400.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.099, allocations: 0 / 400.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01255/0.1116, allocations: 3.079 MB / 403.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001879/0.1118, allocations: 239.9 kB / 403.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.718/1.829, allocations: 0 / 403.6 MB, free: 7.496 MB / 302.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)