Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.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.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",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.0007788/0.0007788, allocations: 91.3 kB / 15.06 MB, free: 1.098 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.0007921/0.0007921, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.212/1.212, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05236/0.05236, allocations: 10.75 MB / 281.1 MB, free: 10.55 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.0004487/0.0004487, allocations: 12 kB / 341.7 MB, free: 23.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07379/0.07425, allocations: 50.01 MB / 391.7 MB, free: 5.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.002339/0.07663, allocations: 1.972 MB / 393.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.0784, allocations: 1.338 MB / 395 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.07857, allocations: 11.88 kB / 395.1 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005435/0.07912, allocations: 187.4 kB / 395.2 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002732/0.07941, allocations: 131.5 kB / 395.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006503/0.08007, allocations: 323.4 kB / 395.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004838/0.08056, allocations: 0.5077 MB / 396.2 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.0807, allocations: 69.23 kB / 396.3 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.08093, allocations: 195.2 kB / 396.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002547/0.08119, allocations: 223 kB / 396.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.08124, allocations: 16 kB / 396.7 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.08143, allocations: 119.9 kB / 396.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.08157, allocations: 127.6 kB / 396.9 MB, free: 444 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.039e-05/0.08166, allocations: 97.39 kB / 397 MB, free: 340 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.08203, allocations: 391.4 kB / 397.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.08204, allocations: 0 / 397.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.08205, allocations: 0 / 397.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.08206, allocations: 0 / 397.4 MB, free: 15.95 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001055/0.08312, allocations: 0.7983 MB / 398.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.08316, allocations: 8.031 kB / 398.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.845e-05/0.08324, allocations: 70.53 kB / 398.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.608e-05/0.08332, allocations: 59.25 kB / 398.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004823/0.08381, allocations: 421.4 kB / 398.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.08384, allocations: 24.66 kB / 398.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.75e-05/0.08391, allocations: 43.91 kB / 398.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006231/0.08454, allocations: 432.3 kB / 399.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.08457, allocations: 7.938 kB / 399.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.08461, allocations: 15.95 kB / 399.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.08463, allocations: 8 kB / 399.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.08515, allocations: 314.4 kB / 399.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.08719, allocations: 1.571 MB / 401.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.08759, allocations: 239.1 kB / 401.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000223/0.08782, allocations: 145 kB / 401.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.08786, allocations: 4.234 kB / 401.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.08822, allocations: 255.2 kB / 401.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.643e-06/0.08823, allocations: 0 / 401.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008492/0.08909, allocations: 0.5443 MB / 402.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.08916, allocations: 114.8 kB / 402.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000492/0.08966, allocations: 0.5135 MB / 402.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.08969, allocations: 37.7 kB / 403 MB, free: 10.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.08987, allocations: 256 kB / 403.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.395e-05/0.08996, allocations: 118.3 kB / 403.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.08998, allocations: 15.94 kB / 403.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.09012, allocations: 370.7 kB / 403.7 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.09036, allocations: 140.9 kB / 403.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/0.09068, allocations: 294.4 kB / 404.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.091, allocations: 218.9 kB / 404.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.09101, allocations: 4 kB / 404.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008637/0.09188, allocations: 0.6216 MB / 405 MB, free: 7.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.801e-05/0.09193, allocations: 33.7 kB / 405 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.09194, allocations: 4 kB / 405 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.09197, allocations: 8.531 kB / 405 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.09237, allocations: 115.8 kB / 405.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.0924, allocations: 7.984 kB / 405.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002104/0.09261, allocations: 63.47 kB / 405.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.09265, allocations: 20 kB / 405.2 MB, free: 7.723 MB / 302.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002819/0.09294, allocations: 265.1 kB / 405.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.673e-05/0.09301, allocations: 51.44 kB / 405.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007844/0.0938, allocations: 0.4958 MB / 406 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.09381, allocations: 4 kB / 406 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.09382, allocations: 0 / 406 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.09384, allocations: 3.953 kB / 406 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.09424, allocations: 445.2 kB / 406.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.09425, allocations: 0 / 406.5 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.09464, allocations: 71.89 kB / 406.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.09465, allocations: 8 kB / 406.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/0.0947, allocations: 19.98 kB / 406.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.0947, allocations: 0 / 406.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.09471, allocations: 0 / 406.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009469/0.09566, allocations: 0.6712 MB / 407.2 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.304e-05/0.09576, allocations: 124.5 kB / 407.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.047e-05/0.09583, allocations: 16 kB / 407.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.09599, allocations: 19.98 kB / 407.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.09607, allocations: 27.94 kB / 407.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.0961, allocations: 12 kB / 407.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003509/0.09646, allocations: 366.8 kB / 407.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.09647, allocations: 0 / 407.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003759/0.09685, allocations: 119.7 kB / 407.9 MB, free: 4.906 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.001974/0.09883, allocations: 1.567 MB / 409.5 MB, free: 3.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.09953, allocations: 488 kB / 410 MB, free: 2.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.09954, allocations: 0 / 410 MB, free: 2.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003256/0.09987, allocations: 260.5 kB / 410.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.1002, allocations: 73.67 kB / 410.3 MB, free: 2.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.1042, allocations: 3.263 MB / 413.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.1046, allocations: 0.8703 MB / 414.4 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002399/0.1048, allocations: 99.38 kB / 414.5 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.105, allocations: 171.4 kB / 414.7 MB, free: 14.07 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.105, allocations: 3.938 kB / 414.7 MB, free: 14.06 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.1244, allocations: 9.687 MB / 424.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/0.1246, allocations: 251.4 kB / 424.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/1.862, allocations: 3.938 kB / 424.6 MB, free: 4.09 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1) Environment - environmentSimulation: