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.004991/0.004991, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001251/0.001251, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.455/1.455, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05757/0.05757, allocations: 10.75 MB / 280.7 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.00137/0.00137, allocations: 68.06 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2592, allocations: 49.02 MB / 439.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.00254/0.2617, allocations: 1.76 MB / 441.1 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009335/0.2627, allocations: 0.6288 MB / 441.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.093e-05/0.2628, allocations: 6.469 kB / 441.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.772e-05/0.2629, allocations: 19.81 kB / 441.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.74e-05/0.263, allocations: 36.33 kB / 441.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.2633, allocations: 86.86 kB / 441.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.2635, allocations: 210 kB / 442.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.2636, allocations: 37.97 kB / 442.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.2637, allocations: 89.28 kB / 442.2 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.2639, allocations: 88.66 kB / 442.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.2639, allocations: 14.72 kB / 442.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.619e-05/0.2639, allocations: 15.44 kB / 442.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.567e-05/0.264, allocations: 39.38 kB / 442.4 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.08e-05/0.2641, allocations: 83.41 kB / 442.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002034/0.2643, allocations: 168.1 kB / 442.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2643, allocations: 0 / 442.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2643, allocations: 4 kB / 442.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.2643, allocations: 0 / 442.6 MB, free: 2.938 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.0009757/0.2653, allocations: 0.5686 MB / 443.2 MB, free: 2.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2653, allocations: 14.14 kB / 443.2 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.625e-05/0.2654, allocations: 45.59 kB / 443.3 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.396e-05/0.2654, allocations: 24.17 kB / 443.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.2658, allocations: 264 kB / 443.5 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.871e-05/0.2658, allocations: 68.05 kB / 443.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.2659, allocations: 14.75 kB / 443.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.2664, allocations: 192.7 kB / 443.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.2664, allocations: 3.938 kB / 443.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.2664, allocations: 5.719 kB / 443.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.2664, allocations: 6.781 kB / 443.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005722/0.267, allocations: 150.2 kB / 444 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.2679, allocations: 0.6389 MB / 444.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005746/0.2684, allocations: 159.5 kB / 444.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.2687, allocations: 80.2 kB / 444.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.2688, allocations: 1.875 kB / 444.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004117/0.2692, allocations: 165.7 kB / 445 MB, free: 1.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.044e-06/0.2692, allocations: 4 kB / 445 MB, free: 1.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001012/0.2702, allocations: 292.6 kB / 445.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.793e-05/0.2702, allocations: 68.02 kB / 445.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.2704, allocations: 197.1 kB / 445.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.2704, allocations: 32.33 kB / 445.6 MB, free: 0.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.329e-05/0.2705, allocations: 139.2 kB / 445.7 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.933e-05/0.2705, allocations: 32.11 kB / 445.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.527e-05/0.2706, allocations: 49.27 kB / 445.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.083e-05/0.2707, allocations: 329 kB / 446.1 MB, free: 424 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003287/0.271, allocations: 94.83 kB / 446.2 MB, free: 400 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.2714, allocations: 145.2 kB / 446.4 MB, free: 312 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005975/0.272, allocations: 267.3 kB / 446.6 MB, free: 140 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.272, allocations: 1.156 kB / 446.6 MB, free: 140 kB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008134/0.2728, allocations: 348.4 kB / 447 MB, free: 15.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.424e-05/0.2729, allocations: 60.81 kB / 447 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2729, allocations: 0.9062 kB / 447 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.2729, allocations: 4.344 kB / 447 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004076/0.2733, allocations: 62.14 kB / 447.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.924e-06/0.2733, allocations: 2.938 kB / 447.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002991/0.2736, allocations: 49.3 kB / 447.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.2737, allocations: 6.906 kB / 447.1 MB, free: 15.88 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.0001526/0.2738, allocations: 137.8 kB / 447.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.2739, allocations: 20.69 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.485e-05/0.2739, allocations: 19.61 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2739, allocations: 1.375 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.274, allocations: 1.859 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.274, allocations: 4.703 kB / 447.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.2742, allocations: 241.4 kB / 447.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.2743, allocations: 3.938 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/0.2747, allocations: 51.73 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.2747, allocations: 5.438 kB / 447.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.2747, allocations: 10.44 kB / 447.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2747, allocations: 0 / 447.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.2747, allocations: 6.094 kB / 447.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.2757, allocations: 339.9 kB / 448 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.204e-05/0.2758, allocations: 97.36 kB / 448.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.2759, allocations: 10.64 kB / 448.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.2761, allocations: 28.05 kB / 448.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.2762, allocations: 27.38 kB / 448.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.2762, allocations: 3.531 kB / 448.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001211/0.2763, allocations: 146.7 kB / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2763, allocations: 64 / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002521/0.2766, allocations: 39.31 kB / 448.3 MB, free: 15.05 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.001323/0.2779, allocations: 0.8816 MB / 449.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008379/0.2788, allocations: 326 kB / 449.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2788, allocations: 0 / 449.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003355/0.2791, allocations: 103.1 kB / 449.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.2794, allocations: 34.08 kB / 449.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003604/0.2831, allocations: 2.289 MB / 451.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.2833, allocations: 0.7268 MB / 452.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.2835, allocations: 18.08 kB / 452.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.2836, allocations: 53.64 kB / 452.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2836, allocations: 0 / 452.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.3085, allocations: 4.458 MB / 457.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.216/8.524, allocations: 4 kB / 457.2 MB, free: 9.113 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)