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.008553/0.008553, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.001964/0.001964, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.506/1.506, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06457/0.06457, allocations: 10.74 MB / 280.6 MB, free: 10.42 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.002155/0.002155, allocations: 68.36 kB / 390.4 MB, free: 5.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2865, allocations: 49.01 MB / 439.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.002699/0.2892, allocations: 1.764 MB / 441.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.2902, allocations: 0.6357 MB / 441.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.2903, allocations: 6.875 kB / 441.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.2904, allocations: 16.25 kB / 441.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.143e-05/0.2905, allocations: 36.22 kB / 441.8 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.2908, allocations: 87.56 kB / 441.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.291, allocations: 207.3 kB / 442.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.2911, allocations: 35.91 kB / 442.2 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.2912, allocations: 84.64 kB / 442.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.2914, allocations: 89.08 kB / 442.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.2914, allocations: 15.62 kB / 442.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.65e-05/0.2914, allocations: 14.53 kB / 442.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.221e-05/0.2915, allocations: 43.34 kB / 442.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.684e-05/0.2915, allocations: 75.66 kB / 442.5 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002295/0.2918, allocations: 174 kB / 442.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2918, allocations: 1.938 kB / 442.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2918, allocations: 0 / 442.6 MB, free: 2.965 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.2918, allocations: 3.938 kB / 442.6 MB, free: 2.961 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.0009945/0.2928, allocations: 0.5728 MB / 443.2 MB, free: 2.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2928, allocations: 13.48 kB / 443.2 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.054e-05/0.2929, allocations: 42.2 kB / 443.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.902e-05/0.2929, allocations: 26.42 kB / 443.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.2933, allocations: 264.7 kB / 443.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.492e-05/0.2934, allocations: 68.91 kB / 443.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.589e-05/0.2934, allocations: 22.5 kB / 443.6 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.294, allocations: 195.8 kB / 443.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.294, allocations: 0 / 443.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.294, allocations: 5.781 kB / 443.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.294, allocations: 3.031 kB / 443.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006112/0.2946, allocations: 159 kB / 444 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009436/0.2956, allocations: 0.6352 MB / 444.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006069/0.2962, allocations: 153 kB / 444.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002965/0.2965, allocations: 78.47 kB / 444.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.2965, allocations: 5.25 kB / 444.9 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000444/0.2969, allocations: 161.8 kB / 445 MB, free: 1.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.2969, allocations: 0 / 445 MB, free: 1.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.00109/0.298, allocations: 297.4 kB / 445.3 MB, free: 1.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.2981, allocations: 55.53 kB / 445.4 MB, free: 1.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.2982, allocations: 204.1 kB / 445.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.2982, allocations: 32.17 kB / 445.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.663e-05/0.2983, allocations: 144.4 kB / 445.7 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.2983, allocations: 37.34 kB / 445.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.2984, allocations: 47.31 kB / 445.8 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.907e-05/0.2985, allocations: 329.4 kB / 446.1 MB, free: 436 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.2988, allocations: 90.64 kB / 446.2 MB, free: 416 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/0.2992, allocations: 146.2 kB / 446.4 MB, free: 328 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006428/0.2998, allocations: 266.9 kB / 446.6 MB, free: 156 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2998, allocations: 1.344 kB / 446.6 MB, free: 156 kB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008817/0.3007, allocations: 348 kB / 447 MB, free: 15.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.779e-05/0.3008, allocations: 69.27 kB / 447 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3008, allocations: 1.281 kB / 447 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.3008, allocations: 3.219 kB / 447 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.3013, allocations: 57.78 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3013, allocations: 3.406 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/0.3016, allocations: 45.56 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.246e-05/0.3016, allocations: 11.34 kB / 447.2 MB, free: 15.89 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.0001688/0.3018, allocations: 137.1 kB / 447.3 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.3018, allocations: 20.28 kB / 447.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.501e-05/0.3018, allocations: 19.81 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3019, allocations: 2.469 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3019, allocations: 4.688 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3019, allocations: 0.5625 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003522/0.3022, allocations: 245.2 kB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3022, allocations: 13.38 kB / 447.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000433/0.3027, allocations: 50.03 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.3027, allocations: 2.031 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.3027, allocations: 2.609 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3027, allocations: 1.438 kB / 447.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3027, allocations: 0 / 447.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.3038, allocations: 344.8 kB / 448 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.3039, allocations: 97.31 kB / 448.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.815e-05/0.3039, allocations: 14.42 kB / 448.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3041, allocations: 27.95 kB / 448.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.3042, allocations: 27.94 kB / 448.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3043, allocations: 6.688 kB / 448.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.3044, allocations: 147.3 kB / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3044, allocations: 0 / 448.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002585/0.3047, allocations: 38.78 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.001515/0.3062, allocations: 0.8906 MB / 449.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008903/0.3071, allocations: 311.7 kB / 449.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3071, allocations: 5.25 kB / 449.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003755/0.3074, allocations: 91.33 kB / 449.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.3078, allocations: 24.95 kB / 449.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.3119, allocations: 2.3 MB / 452 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.3125, allocations: 0.7242 MB / 452.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.3126, allocations: 19.89 kB / 452.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.3127, allocations: 53.95 kB / 452.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3127, allocations: 0 / 452.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.3436, allocations: 4.361 MB / 457.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/8.735, allocations: 6.422 kB / 457.1 MB, free: 9.184 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1)