Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.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.TestTrackingLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL",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.0009519/0.0009519, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009832/0.0009833, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05585/0.05585, allocations: 10.73 MB / 281.1 MB, free: 10.57 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.0004885/0.0004885, allocations: 12 kB / 341.7 MB, free: 23.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1107, allocations: 50.01 MB / 391.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL): time 0.002142/0.1129, allocations: 1.519 MB / 393.2 MB, free: 4.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.1141, allocations: 0.6876 MB / 393.9 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.1142, allocations: 11.88 kB / 393.9 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.1143, allocations: 11.86 kB / 393.9 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.1144, allocations: 43.86 kB / 394 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003487/0.1148, allocations: 107.7 kB / 394.1 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.115, allocations: 171.6 kB / 394.2 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.1152, allocations: 41.16 kB / 394.3 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001515/0.1154, allocations: 111.5 kB / 394.4 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.1155, allocations: 95.52 kB / 394.5 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.1156, allocations: 8 kB / 394.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.109e-05/0.1156, allocations: 12 kB / 394.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.098e-05/0.1157, allocations: 43.81 kB / 394.6 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.018e-05/0.1157, allocations: 57.58 kB / 394.6 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001765/0.1159, allocations: 147.8 kB / 394.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1159, allocations: 3.938 kB / 394.8 MB, free: 2.613 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1159, allocations: 11.94 kB / 394.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1159, allocations: 0 / 394.8 MB, free: 2.602 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001076/0.117, allocations: 0.5744 MB / 395.3 MB, free: 1.973 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1171, allocations: 12.03 kB / 395.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.612e-05/0.1172, allocations: 50.55 kB / 395.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.1172, allocations: 31.62 kB / 395.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003896/0.1176, allocations: 289.4 kB / 395.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.054e-05/0.1177, allocations: 97.39 kB / 395.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.1178, allocations: 23.98 kB / 395.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.1183, allocations: 207.8 kB / 396 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1183, allocations: 7.938 kB / 396 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.1183, allocations: 11.95 kB / 396.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1184, allocations: 4 kB / 396.1 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005658/0.1189, allocations: 192.4 kB / 396.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.1203, allocations: 0.7303 MB / 397 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.1209, allocations: 194.5 kB / 397.2 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.1209, allocations: 0 / 397.2 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004845/0.1214, allocations: 191.1 kB / 397.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.813e-06/0.1214, allocations: 0 / 397.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001059/0.1225, allocations: 365.2 kB / 397.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.1225, allocations: 55.41 kB / 397.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.1227, allocations: 232.9 kB / 398 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.1228, allocations: 33.7 kB / 398 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.1229, allocations: 148.3 kB / 398.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.123, allocations: 51.28 kB / 398.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.591e-05/0.123, allocations: 4 kB / 398.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1231, allocations: 338.8 kB / 398.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.1234, allocations: 107.9 kB / 398.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.1237, allocations: 143.3 kB / 398.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.1241, allocations: 134.4 kB / 398.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1241, allocations: 0 / 398.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007227/0.1248, allocations: 336.3 kB / 399.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.1248, allocations: 33.7 kB / 399.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/0.1249, allocations: 0 / 399.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1249, allocations: 8.031 kB / 399.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.1263, allocations: 139.8 kB / 399.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002109/0.1284, allocations: 2.701 MB / 402.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.1287, allocations: 43.81 kB / 402.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.1287, allocations: 8.219 kB / 402.2 MB, free: 10.61 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 ($whenCondition2,$whenCondition1,LLtr.ts,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,LL.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): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.1288, allocations: 137.8 kB / 402.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.1289, allocations: 23.7 kB / 402.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000705/0.1296, allocations: 310.5 kB / 402.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1296, allocations: 4 kB / 402.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.1296, allocations: 0 / 402.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.1296, allocations: 0 / 402.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.1307, allocations: 0.666 MB / 403.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1307, allocations: 0 / 403.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.1319, allocations: 115.9 kB / 403.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.132, allocations: 0 / 403.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.132, allocations: 4 kB / 403.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.132, allocations: 7.938 kB / 403.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.132, allocations: 7.984 kB / 403.5 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.133, allocations: 498.9 kB / 403.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.564e-05/0.1331, allocations: 96.77 kB / 404 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.1332, allocations: 12 kB / 404.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.1334, allocations: 39.94 kB / 404.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.1335, allocations: 27.97 kB / 404.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.1335, allocations: 7.984 kB / 404.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001209/0.1336, allocations: 156.5 kB / 404.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.352e-06/0.1336, allocations: 0 / 404.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002915/0.1339, allocations: 55.77 kB / 404.3 MB, free: 8.375 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (LLaw.uF,LLtr.uF,LL.uF) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,LLtr.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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/0.1352, allocations: 1.031 MB / 405.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009655/0.1362, allocations: 331.3 kB / 405.7 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1362, allocations: 0 / 405.7 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003259/0.1366, allocations: 123.9 kB / 405.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002537/0.1368, allocations: 20.61 kB / 405.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.1399, allocations: 1.949 MB / 407.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.1402, allocations: 0.7557 MB / 408.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.1403, allocations: 25.95 kB / 408.6 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.1405, allocations: 75.41 kB / 408.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1405, allocations: 0 / 408.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.1592, allocations: 4.543 MB / 413.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002114/0.1594, allocations: 250.9 kB / 413.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.052, allocations: 3.438 kB / 413.4 MB, free: 15.3 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe 2>&1) Environment - environmentSimulation: