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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001769/0.001768, allocations: 180.2 kB / 7.65 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07202/0.07202, allocations: 10.66 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.874/1.874, allocations: 205.3 MB / 226.9 MB, free: 7.883 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008411/0.0008412, allocations: 90.42 kB / 277.3 MB, free: 5.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.166e-05/2.167e-05, allocations: 0 / 333.6 MB, free: 28.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 50 MB / 383.6 MB, free: 10.25 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3934/0.5113, allocations: 78.48 MB / 462.1 MB, free: 5.797 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5116, allocations: 78.52 kB / 462.2 MB, free: 5.754 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01344/0.525, allocations: 4.455 MB / 466.6 MB, free: 1.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5251, allocations: 0 / 466.6 MB, free: 1.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.5251, allocations: 7.984 kB / 466.6 MB, free: 1.973 MB / 330.7 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.0009907/0.5261, allocations: 0.5544 MB / 467.2 MB, free: 1.379 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.5262, allocations: 8.031 kB / 467.2 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.836e-05/0.5263, allocations: 35.58 kB / 467.2 MB, free: 1.336 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.5269, allocations: 336.2 kB / 467.6 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.221e-05/0.527, allocations: 89.39 kB / 467.7 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.063e-05/0.527, allocations: 8 kB / 467.7 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001912/0.5272, allocations: 86.48 kB / 467.8 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002986/0.5276, allocations: 188.6 kB / 467.9 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.5276, allocations: 3.984 kB / 467.9 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.5276, allocations: 0 / 467.9 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.5276, allocations: 4 kB / 467.9 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.5289, allocations: 0.6692 MB / 468.6 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.5291, allocations: 97.08 kB / 468.7 MB, free: 0 / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.5292, allocations: 46.91 kB / 468.8 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.5293, allocations: 7.984 kB / 468.8 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002178/0.5295, allocations: 125.9 kB / 468.9 MB, free: 15.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.5295, allocations: 3.938 kB / 468.9 MB, free: 15.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003219/0.5298, allocations: 150 kB / 469 MB, free: 15.72 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.5299, allocations: 59.16 kB / 469.1 MB, free: 15.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.5301, allocations: 193.3 kB / 469.3 MB, free: 15.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.5301, allocations: 30.73 kB / 469.3 MB, free: 15.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.832e-05/0.5302, allocations: 144.8 kB / 469.5 MB, free: 15.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.5302, allocations: 50.42 kB / 469.5 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-05/0.5303, allocations: 0 / 469.5 MB, free: 15.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.5304, allocations: 337.8 kB / 469.8 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.439e-05/0.5305, allocations: 49.06 kB / 469.9 MB, free: 14.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.97e-05/0.5306, allocations: 81.53 kB / 470 MB, free: 14.87 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.902e-05/0.5307, allocations: 54.03 kB / 470 MB, free: 14.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.5307, allocations: 0 / 470 MB, free: 14.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002905/0.531, allocations: 194.5 kB / 470.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.5311, allocations: 32.36 kB / 470.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5311, allocations: 7.938 kB / 470.2 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.5311, allocations: 0 / 470.2 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.5324, allocations: 131.3 kB / 470.4 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.5341, allocations: 2.478 MB / 472.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.5343, allocations: 35.91 kB / 472.9 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.5344, allocations: 7.375 kB / 472.9 MB, free: 11.8 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: LLtr.Y:VARIABLE(protected = true ) "output before saturation" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: LLaw.Y:VARIABLE(protected = true ) "output before saturation" type: Real 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,LLaw.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 () * 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.0001645/0.5346, allocations: 134.9 kB / 473 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002314/0.5348, allocations: 151.2 kB / 473.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.9e-05/0.5348, allocations: 19.72 kB / 473.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003382/0.5352, allocations: 196.9 kB / 473.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5352, allocations: 8 kB / 473.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.5352, allocations: 0 / 473.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.5352, allocations: 0 / 473.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006896/0.5359, allocations: 0.5282 MB / 473.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5359, allocations: 0 / 473.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.537, allocations: 111.9 kB / 474 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.537, allocations: 0 / 474 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.537, allocations: 4 kB / 474 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5371, allocations: 0 / 474 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/0.5371, allocations: 3.984 kB / 474 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004275/0.5375, allocations: 350.2 kB / 474.4 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-05/0.5376, allocations: 96.77 kB / 474.5 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.5376, allocations: 4 kB / 474.5 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.5379, allocations: 38.5 kB / 474.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.007e-05/0.538, allocations: 27.33 kB / 474.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.538, allocations: 11.12 kB / 474.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001185/0.5381, allocations: 144.8 kB / 474.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5381, allocations: 0 / 474.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000344/0.5385, allocations: 43.86 kB / 474.7 MB, free: 10.11 MB / 346.7 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,LLaw.TS,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * 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.0007713/0.5392, allocations: 0.8849 MB / 475.6 MB, free: 9.273 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000581/0.5398, allocations: 219.2 kB / 475.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5398, allocations: 0 / 475.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.54, allocations: 77.8 kB / 475.9 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.5402, allocations: 23.61 kB / 475.9 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009355/0.5412, allocations: 390.2 kB / 476.3 MB, free: 8.645 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.5415, allocations: 0.7555 MB / 477.1 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.5417, allocations: 30.06 kB / 477.1 MB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.5418, allocations: 70.11 kB / 477.2 MB, free: 7.805 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5418, allocations: 4 kB / 477.2 MB, free: 7.801 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.5662, allocations: 4.003 MB / 481.2 MB, free: 3.801 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/0.5665, allocations: 171 kB / 481.3 MB, free: 3.609 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.606, allocations: 0 / 481.3 MB, free: 3.609 MB / 346.7 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)