Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",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.001663/0.001663, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0018/0.001801, allocations: 192.3 kB / 16.25 MB, free: 6.617 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.605/1.605, allocations: 205.1 MB / 222.1 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05734/0.05734, allocations: 10.75 MB / 280.2 MB, free: 10.65 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.001494/0.001494, allocations: 63.89 kB / 340.1 MB, free: 23.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1101, allocations: 49.01 MB / 389.2 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.00367/0.1138, allocations: 2.057 MB / 391.2 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1159, allocations: 1.155 MB / 392.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1161, allocations: 7.938 kB / 392.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008684/0.1169, allocations: 259.4 kB / 392.6 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004177/0.1174, allocations: 187.5 kB / 392.8 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007681/0.1181, allocations: 259.6 kB / 393.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004241/0.1186, allocations: 347.1 kB / 393.4 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1188, allocations: 56.27 kB / 393.5 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.119, allocations: 139.4 kB / 393.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.1192, allocations: 151.4 kB / 393.7 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.1192, allocations: 16 kB / 393.8 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.1194, allocations: 95.89 kB / 393.8 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.1196, allocations: 87.73 kB / 393.9 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.1197, allocations: 111.3 kB / 394 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005808/0.1203, allocations: 351.1 kB / 394.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1203, allocations: 0 / 394.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1203, allocations: 0 / 394.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1203, allocations: 4 kB / 394.4 MB, free: 1.234 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001185/0.1215, allocations: 0.6342 MB / 395 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/0.1216, allocations: 11.89 kB / 395 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.745e-05/0.1217, allocations: 50.73 kB / 395.1 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.26e-05/0.1218, allocations: 32.56 kB / 395.1 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006329/0.1224, allocations: 316.2 kB / 395.4 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.1224, allocations: 15.92 kB / 395.4 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.1225, allocations: 12 kB / 395.5 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003862/0.1229, allocations: 148.2 kB / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1229, allocations: 3.938 kB / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.1229, allocations: 8 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.1229, allocations: 0 / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.1231, allocations: 67.91 kB / 395.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009211/0.1241, allocations: 488.1 kB / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.1245, allocations: 142.7 kB / 396.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.1247, allocations: 52.84 kB / 396.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.1247, allocations: 4 kB / 396.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.125, allocations: 131.3 kB / 396.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.432e-06/0.125, allocations: 0 / 396.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006603/0.1257, allocations: 257.2 kB / 396.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.091e-05/0.1258, allocations: 114.8 kB / 396.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.1263, allocations: 380.5 kB / 397.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.1263, allocations: 33.69 kB / 397.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.1266, allocations: 160.4 kB / 397.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/0.1266, allocations: 55.33 kB / 397.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.747e-05/0.1267, allocations: 49.64 kB / 397.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002613/0.127, allocations: 342.8 kB / 397.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1271, allocations: 47.97 kB / 397.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1273, allocations: 148.6 kB / 398 MB, free: 13.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.1277, allocations: 180.5 kB / 398.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1277, allocations: 3.938 kB / 398.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004137/0.1281, allocations: 225.1 kB / 398.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1281, allocations: 4 kB / 398.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1281, allocations: 4 kB / 398.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.1282, allocations: 4 kB / 398.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.1283, allocations: 31.91 kB / 398.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1283, allocations: 4 kB / 398.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.1285, allocations: 28.03 kB / 398.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1285, allocations: 12 kB / 398.5 MB, free: 12.76 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0002746/0.1288, allocations: 175.9 kB / 398.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.1288, allocations: 31.66 kB / 398.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.876e-05/0.1289, allocations: 31.08 kB / 398.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1289, allocations: 4 kB / 398.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1289, allocations: 4 kB / 398.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1289, allocations: 4.062 kB / 398.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003387/0.1293, allocations: 297.3 kB / 399.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1293, allocations: 0 / 399.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.1293, allocations: 11.98 kB / 399.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1294, allocations: 0 / 399.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.1294, allocations: 7.938 kB / 399.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1294, allocations: 3.938 kB / 399.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1294, allocations: 0 / 399.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000486/0.1299, allocations: 255.6 kB / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.13, allocations: 96.83 kB / 399.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/0.13, allocations: 7.984 kB / 399.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.598e-05/0.1301, allocations: 12 kB / 399.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/0.1302, allocations: 7.984 kB / 399.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.1302, allocations: 15.92 kB / 399.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003959/0.1306, allocations: 279 kB / 399.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.715e-06/0.1306, allocations: 0 / 399.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003752/0.131, allocations: 75.77 kB / 399.8 MB, free: 11.38 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.002297/0.1333, allocations: 1.105 MB / 400.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004673/0.1338, allocations: 163.8 kB / 401.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1338, allocations: 4 kB / 401.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.134, allocations: 71.91 kB / 401.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/0.1345, allocations: 70.05 kB / 401.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.1384, allocations: 2.886 MB / 404.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.1389, allocations: 0.7597 MB / 404.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.1391, allocations: 50.48 kB / 404.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.1393, allocations: 87.41 kB / 405 MB, free: 6.102 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1393, allocations: 0 / 405 MB, free: 6.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.1584, allocations: 7.018 MB / 412 MB, free: 15.1 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002263/0.1587, allocations: 266.2 kB / 412.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.341, allocations: 0 / 412.3 MB, free: 14.75 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)