Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.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.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",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.0008082/0.0008083, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.00531/0.00531, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.472/1.472, allocations: 205.4 MB / 222.4 MB, free: 5.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05686/0.05686, allocations: 10.75 MB / 281.5 MB, free: 10.45 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.0005112/0.0005113, allocations: 22.97 kB / 342.3 MB, free: 23.4 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08726, allocations: 50 MB / 392.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.001859/0.08916, allocations: 1.479 MB / 393.8 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.09024, allocations: 0.6205 MB / 394.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.832e-05/0.09036, allocations: 7.938 kB / 394.4 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.301e-05/0.09046, allocations: 7.875 kB / 394.5 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.418e-05/0.09056, allocations: 23.78 kB / 394.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000261/0.09083, allocations: 79.84 kB / 394.6 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.09106, allocations: 191.4 kB / 394.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.09118, allocations: 37.84 kB / 394.8 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.09131, allocations: 75.67 kB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.09145, allocations: 75.61 kB / 394.9 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.09149, allocations: 12 kB / 394.9 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.38e-05/0.09152, allocations: 11.94 kB / 395 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.158e-05/0.09157, allocations: 27.84 kB / 395 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.895e-05/0.09167, allocations: 105.3 kB / 395.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001822/0.09186, allocations: 155.3 kB / 395.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.09187, allocations: 0 / 395.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.09188, allocations: 0 / 395.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.0919, allocations: 4 kB / 395.2 MB, free: 2.398 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001067/0.09298, allocations: 0.5601 MB / 395.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.09303, allocations: 8.031 kB / 395.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.062e-05/0.0931, allocations: 46.75 kB / 395.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.035e-05/0.09317, allocations: 24.73 kB / 395.9 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.09348, allocations: 251.6 kB / 396.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.9e-05/0.09356, allocations: 63.97 kB / 396.2 MB, free: 1.336 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.09361, allocations: 12.38 kB / 396.2 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.09414, allocations: 212.6 kB / 396.4 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.09416, allocations: 0 / 396.4 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.09419, allocations: 15.97 kB / 396.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.09421, allocations: 0 / 396.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000626/0.09484, allocations: 191.8 kB / 396.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009728/0.09582, allocations: 0.6645 MB / 397.3 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.09648, allocations: 190.4 kB / 397.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.09681, allocations: 96.78 kB / 397.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.09683, allocations: 7.984 kB / 397.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004896/0.09733, allocations: 183.2 kB / 397.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.09734, allocations: 0 / 397.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00106/0.09841, allocations: 345.4 kB / 398.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.09847, allocations: 59.39 kB / 398.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.09868, allocations: 199.7 kB / 398.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.328e-05/0.09872, allocations: 33.7 kB / 398.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.09885, allocations: 132.2 kB / 398.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.0989, allocations: 43.45 kB / 398.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.398e-05/0.09897, allocations: 29.7 kB / 398.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.09913, allocations: 330.8 kB / 398.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003622/0.0995, allocations: 111.9 kB / 399 MB, free: 14.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003846/0.0999, allocations: 157.9 kB / 399.1 MB, free: 14.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007286/0.1006, allocations: 305.1 kB / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1006, allocations: 0 / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008859/0.1015, allocations: 376.6 kB / 399.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/0.1016, allocations: 66.06 kB / 399.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1016, allocations: 4 kB / 399.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1016, allocations: 128 / 399.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.102, allocations: 71.89 kB / 400 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.1021, allocations: 3.984 kB / 400 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/0.1023, allocations: 59.8 kB / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.1024, allocations: 8 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001265/0.1025, allocations: 141.7 kB / 400.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.1025, allocations: 19.75 kB / 400.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.641e-05/0.1026, allocations: 21.52 kB / 400.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1026, allocations: 0 / 400.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1026, allocations: 4 kB / 400.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.1026, allocations: 0 / 400.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.1029, allocations: 257.4 kB / 400.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1029, allocations: 3.938 kB / 400.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/0.1033, allocations: 59.94 kB / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1033, allocations: 4 kB / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.1033, allocations: 0 / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1033, allocations: 0 / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.1033, allocations: 4 kB / 400.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.1044, allocations: 388.6 kB / 400.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.1045, allocations: 96.88 kB / 401 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.1045, allocations: 12.06 kB / 401 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.1048, allocations: 39.95 kB / 401.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.946e-05/0.1049, allocations: 27.95 kB / 401.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.1049, allocations: 7.938 kB / 401.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.105, allocations: 149.5 kB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.105, allocations: 4 kB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.1053, allocations: 35.91 kB / 401.3 MB, free: 11.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001402/0.1067, allocations: 0.9368 MB / 402.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008187/0.1075, allocations: 350.7 kB / 402.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1075, allocations: 0 / 402.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003472/0.1079, allocations: 116.3 kB / 402.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1082, allocations: 35.75 kB / 402.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.1118, allocations: 2.439 MB / 405.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.1121, allocations: 0.7244 MB / 405.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.554e-05/0.1122, allocations: 21.53 kB / 405.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.1123, allocations: 55.42 kB / 405.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1124, allocations: 3.938 kB / 405.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4501/0.5625, allocations: 3.821 MB / 409.8 MB, free: 3.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/0.5627, allocations: 235.5 kB / 410 MB, free: 3.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.436, allocations: 0 / 410 MB, free: 3.062 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1)