Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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: translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO") translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008029/0.008028, allocations: 102.7 kB / 15.73 MB, free: 5.992 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.001305/0.001305, allocations: 190.2 kB / 16.67 MB, free: 5.91 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.727/1.727, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05625/0.05625, allocations: 10.74 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.001361/0.001361, allocations: 59.91 kB / 390.8 MB, free: 5.016 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3744, allocations: 49.02 MB / 439.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003077/0.3775, allocations: 1.808 MB / 441.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009852/0.3785, allocations: 0.6639 MB / 442.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3786, allocations: 8.562 kB / 442.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.604e-05/0.3787, allocations: 20.55 kB / 442.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.798e-05/0.3788, allocations: 37.97 kB / 442.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.3791, allocations: 99.81 kB / 442.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002576/0.3793, allocations: 233.3 kB / 442.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3795, allocations: 62.17 kB / 442.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.3796, allocations: 96.3 kB / 442.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.3797, allocations: 88.72 kB / 443 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.3798, allocations: 17.66 kB / 443 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.216e-05/0.3798, allocations: 16.06 kB / 443 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.032e-05/0.3799, allocations: 44.34 kB / 443 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.966e-05/0.38, allocations: 96.45 kB / 443.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.3802, allocations: 198.2 kB / 443.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3802, allocations: 1.469 kB / 443.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.3802, allocations: 0 / 443.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.3802, allocations: 0.6094 kB / 443.3 MB, free: 3.039 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000919/0.3812, allocations: 0.5764 MB / 443.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3812, allocations: 13.48 kB / 443.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/0.3813, allocations: 27.06 kB / 443.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.3816, allocations: 303.5 kB / 444.2 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.822e-05/0.3817, allocations: 93.64 kB / 444.3 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.436e-05/0.3817, allocations: 16.33 kB / 444.4 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004301/0.3822, allocations: 183.8 kB / 444.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.3822, allocations: 5.109 kB / 444.5 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.3822, allocations: 8.938 kB / 444.5 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3822, allocations: 6.438 kB / 444.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.3827, allocations: 149.4 kB / 444.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009636/0.3837, allocations: 0.5676 MB / 445.3 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004851/0.3842, allocations: 143.7 kB / 445.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.3844, allocations: 78.33 kB / 445.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.598e-05/0.3845, allocations: 2.281 kB / 445.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000373/0.3848, allocations: 140.2 kB / 445.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.443e-06/0.3849, allocations: 0 / 445.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008609/0.3857, allocations: 277.3 kB / 445.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.3858, allocations: 58.41 kB / 445.9 MB, free: 1.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.3859, allocations: 200.2 kB / 446.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.386, allocations: 32.75 kB / 446.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.386, allocations: 149.7 kB / 446.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.3861, allocations: 37.05 kB / 446.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.277e-05/0.3862, allocations: 41.47 kB / 446.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.754e-05/0.3862, allocations: 337.8 kB / 446.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3865, allocations: 74.89 kB / 446.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.3868, allocations: 110.8 kB / 446.9 MB, free: 0.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005091/0.3873, allocations: 206.1 kB / 447.1 MB, free: 480 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3873, allocations: 0 / 447.1 MB, free: 480 kB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006091/0.3879, allocations: 273.8 kB / 447.4 MB, free: 352 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.3879, allocations: 37.41 kB / 447.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.388, allocations: 5.734 kB / 447.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.388, allocations: 1.156 kB / 447.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006685/0.3886, allocations: 67.88 kB / 447.5 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.3887, allocations: 2.25 kB / 447.5 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.3889, allocations: 36.81 kB / 447.5 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.953e-05/0.3889, allocations: 6.469 kB / 447.5 MB, free: 300 kB / 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,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.321e-05/0.389, allocations: 135.4 kB / 447.7 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.389, allocations: 20.31 kB / 447.7 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.3891, allocations: 24.8 kB / 447.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3891, allocations: 1.25 kB / 447.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3891, allocations: 0 / 447.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3891, allocations: 1.312 kB / 447.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002648/0.3894, allocations: 270.8 kB / 448 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3894, allocations: 4 kB / 448 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007266/0.3901, allocations: 67.03 kB / 448 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3901, allocations: 0.9062 kB / 448 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.3902, allocations: 14.39 kB / 448.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3902, allocations: 0 / 448.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3902, allocations: 0 / 448.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008289/0.391, allocations: 320.2 kB / 448.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.91e-05/0.3911, allocations: 101.4 kB / 448.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.3911, allocations: 6.312 kB / 448.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.3913, allocations: 24.69 kB / 448.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/0.3914, allocations: 20.2 kB / 448.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3914, allocations: 7.766 kB / 448.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.3916, allocations: 148.3 kB / 448.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3916, allocations: 0 / 448.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.3918, allocations: 31.47 kB / 448.7 MB, free: 15.38 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.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 (12): * Single equations (assignments): 9 * 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.0001094/0.3919, allocations: 104.6 kB / 448.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006052/0.3925, allocations: 238.1 kB / 449 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3925, allocations: 0 / 449 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002658/0.3928, allocations: 88.61 kB / 449.1 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.393, allocations: 36.64 kB / 449.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007889/0.3938, allocations: 386.5 kB / 449.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.3942, allocations: 0.7346 MB / 450.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.619e-05/0.3943, allocations: 24.12 kB / 450.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.057e-05/0.3943, allocations: 17.72 kB / 450.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3943, allocations: 0 / 450.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Templates: time 0.00474/0.3991, allocations: 1.97 MB / 452.3 MB, free: 13.05 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1)