Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",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.001086/0.001086, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.47/1.47, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05914/0.05914, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.00142/0.00142, allocations: 63.91 kB / 340.6 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09715, allocations: 49.02 MB / 389.7 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002994/0.1002, allocations: 1.718 MB / 391.4 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009909/0.1012, allocations: 0.593 MB / 392 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.594e-05/0.1013, allocations: 11.94 kB / 392 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.1014, allocations: 23.73 kB / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.266e-05/0.1015, allocations: 27.72 kB / 392 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.1018, allocations: 63.86 kB / 392.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.102, allocations: 175.5 kB / 392.3 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.1022, allocations: 41.67 kB / 392.3 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.1023, allocations: 75.69 kB / 392.4 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.869e-05/0.1024, allocations: 71.62 kB / 392.5 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.1024, allocations: 12 kB / 392.5 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.645e-05/0.1025, allocations: 16 kB / 392.5 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.149e-05/0.1025, allocations: 27.91 kB / 392.5 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.015e-05/0.1026, allocations: 75.52 kB / 392.6 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.1028, allocations: 135.5 kB / 392.7 MB, free: 3.055 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1028, allocations: 0 / 392.7 MB, free: 3.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1028, allocations: 0 / 392.7 MB, free: 3.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1028, allocations: 0 / 392.7 MB, free: 3.055 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009664/0.1038, allocations: 0.5004 MB / 393.2 MB, free: 2.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1038, allocations: 15.89 kB / 393.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.97e-05/0.1039, allocations: 46.69 kB / 393.3 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.1039, allocations: 24.64 kB / 393.3 MB, free: 2.406 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.1042, allocations: 235.9 kB / 393.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-05/0.1043, allocations: 59.97 kB / 393.6 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.859e-05/0.1043, allocations: 12.38 kB / 393.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.1047, allocations: 141.4 kB / 393.7 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1047, allocations: 0 / 393.7 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.1048, allocations: 4 kB / 393.7 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.1048, allocations: 4 kB / 393.8 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004756/0.1053, allocations: 119.3 kB / 393.9 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008256/0.1061, allocations: 432.4 kB / 394.3 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.1066, allocations: 122.5 kB / 394.4 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.1068, allocations: 60.8 kB / 394.5 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.1069, allocations: 4 kB / 394.5 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004451/0.1073, allocations: 135.1 kB / 394.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.1073, allocations: 0 / 394.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008487/0.1082, allocations: 237.6 kB / 394.8 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.1082, allocations: 55.5 kB / 394.9 MB, free: 0.6719 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter Input.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.1084, allocations: 190.8 kB / 395.1 MB, free: 488 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1085, allocations: 29.7 kB / 395.1 MB, free: 452 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.334e-05/0.1086, allocations: 120.2 kB / 395.2 MB, free: 328 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.1086, allocations: 27.64 kB / 395.3 MB, free: 300 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/0.1087, allocations: 33.7 kB / 395.3 MB, free: 260 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1088, allocations: 326.8 kB / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.1091, allocations: 63.94 kB / 395.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.1093, allocations: 95.36 kB / 395.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004826/0.1098, allocations: 173.1 kB / 395.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.1098, allocations: 0 / 395.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005894/0.1104, allocations: 234.9 kB / 396.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.1105, allocations: 44.44 kB / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1105, allocations: 0 / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1105, allocations: 4 kB / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.1107, allocations: 28.06 kB / 396.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1107, allocations: 4 kB / 396.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.111, allocations: 31.81 kB / 396.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.111, allocations: 7.938 kB / 396.3 MB, free: 15.21 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 ($whenCondition1,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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.0001142/0.1111, allocations: 125.8 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.756e-05/0.1111, allocations: 15.84 kB / 396.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.999e-05/0.1112, allocations: 17.41 kB / 396.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1112, allocations: 4 kB / 396.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.1112, allocations: 0 / 396.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.1112, allocations: 3.984 kB / 396.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.1115, allocations: 225.5 kB / 396.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.1115, allocations: 4 kB / 396.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.1117, allocations: 23.97 kB / 396.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.1117, allocations: 3.938 kB / 396.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1117, allocations: 11.92 kB / 396.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1117, allocations: 0 / 396.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1117, allocations: 3.938 kB / 396.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.1123, allocations: 197 kB / 396.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.1123, allocations: 92.91 kB / 397 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.1124, allocations: 7.938 kB / 397 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.1126, allocations: 28 kB / 397 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.987e-05/0.1127, allocations: 27.89 kB / 397.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.1127, allocations: 8 kB / 397.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.1128, allocations: 124.1 kB / 397.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1128, allocations: 0 / 397.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.113, allocations: 35.84 kB / 397.2 MB, free: 14.17 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.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 (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008067/0.1138, allocations: 0.7409 MB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005814/0.1144, allocations: 211.2 kB / 398.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1144, allocations: 0 / 398.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.1147, allocations: 71.88 kB / 398.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.115, allocations: 24.17 kB / 398.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002763/0.1177, allocations: 1.915 MB / 400.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.118, allocations: 0.7203 MB / 400.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.048e-05/0.1181, allocations: 13.08 kB / 400.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.672e-05/0.1182, allocations: 43.42 kB / 400.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1182, allocations: 3.938 kB / 400.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.1375, allocations: 3.411 MB / 404.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.659/7.797, allocations: 12.25 kB / 404.4 MB, free: 6.895 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1)