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.007377/0.007377, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001835/0.001835, allocations: 188.9 kB / 16.67 MB, free: 5.969 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.336/1.336, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05738/0.05738, allocations: 10.75 MB / 280.6 MB, free: 10.41 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.001597/0.001598, allocations: 75.03 kB / 390.3 MB, free: 5.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2487, allocations: 49.01 MB / 439.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.002498/0.2512, allocations: 1.768 MB / 441.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000928/0.2522, allocations: 0.625 MB / 441.8 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.047e-05/0.2523, allocations: 6.75 kB / 441.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.2524, allocations: 23.2 kB / 441.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.916e-05/0.2525, allocations: 35.3 kB / 441.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.2527, allocations: 92.89 kB / 441.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.253, allocations: 205.2 kB / 442.1 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.2531, allocations: 37.61 kB / 442.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2533, allocations: 88.39 kB / 442.2 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.2534, allocations: 93.95 kB / 442.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.433e-05/0.2534, allocations: 14.72 kB / 442.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.854e-05/0.2535, allocations: 15.22 kB / 442.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.419e-05/0.2535, allocations: 39.47 kB / 442.4 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.634e-05/0.2536, allocations: 79.88 kB / 442.5 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.2538, allocations: 171.1 kB / 442.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2538, allocations: 0.5625 kB / 442.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2538, allocations: 0 / 442.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.2538, allocations: 1.469 kB / 442.6 MB, free: 2.965 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009729/0.2548, allocations: 0.5707 MB / 443.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2549, allocations: 13.84 kB / 443.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.476e-05/0.2549, allocations: 45.5 kB / 443.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.104e-05/0.255, allocations: 24.27 kB / 443.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.2553, allocations: 264.4 kB / 443.5 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.751e-05/0.2553, allocations: 69.33 kB / 443.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.2554, allocations: 13.33 kB / 443.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004797/0.2558, allocations: 187.9 kB / 443.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2559, allocations: 4 kB / 443.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.2559, allocations: 5.938 kB / 443.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2559, allocations: 2.75 kB / 443.8 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005971/0.2565, allocations: 152.2 kB / 444 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008595/0.2574, allocations: 0.6464 MB / 444.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006113/0.258, allocations: 163.2 kB / 444.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/0.2583, allocations: 76.03 kB / 444.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.2583, allocations: 5.406 kB / 444.9 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.2588, allocations: 164.4 kB / 445 MB, free: 1.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.2588, allocations: 3.938 kB / 445 MB, free: 1.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001061/0.2599, allocations: 295.1 kB / 445.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.2599, allocations: 62.47 kB / 445.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.2601, allocations: 196.3 kB / 445.6 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.2601, allocations: 32.94 kB / 445.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.485e-05/0.2602, allocations: 144.1 kB / 445.7 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.079e-05/0.2602, allocations: 33.03 kB / 445.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.517e-05/0.2603, allocations: 48 kB / 445.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.467e-05/0.2604, allocations: 329 kB / 446.1 MB, free: 444 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.2607, allocations: 90.45 kB / 446.2 MB, free: 424 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.2611, allocations: 146.7 kB / 446.4 MB, free: 336 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006332/0.2617, allocations: 262.1 kB / 446.6 MB, free: 168 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2617, allocations: 0.9375 kB / 446.6 MB, free: 168 kB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008399/0.2626, allocations: 349.1 kB / 447 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.888e-05/0.2626, allocations: 60 kB / 447 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2627, allocations: 6.656 kB / 447 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.2627, allocations: 2.875 kB / 447 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004177/0.2631, allocations: 62.17 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.2631, allocations: 3.469 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.2634, allocations: 45.06 kB / 447.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.233e-05/0.2634, allocations: 8.469 kB / 447.1 MB, free: 15.9 MB / 334.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.0001138/0.2636, allocations: 136.4 kB / 447.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.07e-05/0.2636, allocations: 20.42 kB / 447.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.665e-05/0.2637, allocations: 20.03 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2637, allocations: 5.141 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2637, allocations: 0.9062 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2637, allocations: 0.7969 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002407/0.2639, allocations: 241.1 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2639, allocations: 5.188 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004253/0.2644, allocations: 55.64 kB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2644, allocations: 3.938 kB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2644, allocations: 3.625 kB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2644, allocations: 0.6562 kB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2644, allocations: 5.125 kB / 447.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.2655, allocations: 346.2 kB / 448 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.736e-05/0.2656, allocations: 98.17 kB / 448.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.2656, allocations: 5.281 kB / 448.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.2658, allocations: 32.98 kB / 448.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-05/0.2659, allocations: 27.25 kB / 448.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.266, allocations: 11.11 kB / 448.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.2661, allocations: 146.5 kB / 448.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2661, allocations: 1 kB / 448.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002402/0.2663, allocations: 34.31 kB / 448.3 MB, free: 15.07 MB / 334.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.001347/0.2677, allocations: 0.8905 MB / 449.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007975/0.2685, allocations: 312.1 kB / 449.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.2685, allocations: 448 / 449.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003466/0.2689, allocations: 107.1 kB / 449.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.2692, allocations: 33.03 kB / 449.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.2727, allocations: 2.287 MB / 451.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.273, allocations: 0.7245 MB / 452.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.807e-05/0.2731, allocations: 15.27 kB / 452.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.2732, allocations: 61.41 kB / 452.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2732, allocations: 0 / 452.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.2954, allocations: 4.457 MB / 457.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.843, allocations: 0 / 457.2 MB, free: 9.145 MB / 334.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)