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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.005188/0.005188, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001324/0.001324, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06296/0.06296, allocations: 11.2 MB / 301.7 MB, free: 4.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 59.47 kB / 417.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09403, allocations: 51.99 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003356/0.09743, allocations: 2 MB / 471.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.0995, allocations: 1.251 MB / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.688e-05/0.09961, allocations: 0 / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008078/0.1004, allocations: 283.2 kB / 472.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004154/0.1009, allocations: 193.7 kB / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007368/0.1016, allocations: 318.7 kB / 473.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000388/0.102, allocations: 343.1 kB / 473.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1022, allocations: 52.38 kB / 473.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.1023, allocations: 143.4 kB / 473.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.1025, allocations: 135.5 kB / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.1026, allocations: 16 kB / 474 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.1028, allocations: 107.9 kB / 474.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.103, allocations: 75.75 kB / 474.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.1031, allocations: 127.2 kB / 474.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.1036, allocations: 346.8 kB / 474.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1036, allocations: 0 / 474.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1036, allocations: 4 kB / 474.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1036, allocations: 0 / 474.7 MB, free: 9.727 MB / 350.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.0009938/0.1046, allocations: 0.661 MB / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1047, allocations: 11.89 kB / 475.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.1047, allocations: 46.73 kB / 475.4 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.023e-05/0.1048, allocations: 36.75 kB / 475.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004357/0.1052, allocations: 316.5 kB / 475.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.1053, allocations: 23.86 kB / 475.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.1053, allocations: 12 kB / 475.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003044/0.1056, allocations: 151.8 kB / 475.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1056, allocations: 3.984 kB / 475.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.1057, allocations: 0 / 475.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1057, allocations: 4 kB / 475.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.1058, allocations: 65.03 kB / 476 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006984/0.1066, allocations: 488.4 kB / 476.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.1069, allocations: 134.7 kB / 476.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.1071, allocations: 57.72 kB / 476.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.1071, allocations: 0 / 476.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/0.1074, allocations: 131.3 kB / 476.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.1074, allocations: 0 / 476.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.000684/0.1081, allocations: 265.4 kB / 477 MB, free: 7.152 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.987e-05/0.1082, allocations: 110.7 kB / 477.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004432/0.1086, allocations: 384.5 kB / 477.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.1087, allocations: 41.69 kB / 477.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1088, allocations: 148.5 kB / 477.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.634e-05/0.1089, allocations: 51.62 kB / 477.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.109, allocations: 41.7 kB / 477.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1091, allocations: 346.8 kB / 478.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.1093, allocations: 43.97 kB / 478.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.1095, allocations: 149 kB / 478.3 MB, free: 5.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.1098, allocations: 180.4 kB / 478.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1098, allocations: 7.938 kB / 478.5 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004016/0.1102, allocations: 221.3 kB / 478.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.1102, allocations: 6.812 kB / 478.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1103, allocations: 4 kB / 478.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1103, allocations: 4.125 kB / 478.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1104, allocations: 35.92 kB / 478.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.1104, allocations: 16.17 kB / 478.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1106, allocations: 27.78 kB / 478.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.1106, allocations: 8 kB / 478.8 MB, free: 5.227 MB / 350.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.000226/0.1108, allocations: 184.5 kB / 479 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.66e-05/0.1109, allocations: 31.81 kB / 479 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.691e-05/0.1109, allocations: 31.08 kB / 479.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.1109, allocations: 4 kB / 479.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.111, allocations: 0 / 479.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.111, allocations: 3.938 kB / 479.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.1113, allocations: 289.5 kB / 479.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1113, allocations: 0 / 479.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.403e-05/0.1113, allocations: 11.92 kB / 479.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1113, allocations: 4 kB / 479.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.1113, allocations: 0 / 479.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1113, allocations: 0 / 479.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1113, allocations: 4 kB / 479.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004431/0.1118, allocations: 256.7 kB / 479.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.339e-05/0.1119, allocations: 100.9 kB / 479.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.475e-05/0.1119, allocations: 7.984 kB / 479.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.112, allocations: 12 kB / 479.8 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.938e-05/0.1121, allocations: 11.98 kB / 479.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.1121, allocations: 15.92 kB / 479.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002992/0.1124, allocations: 283 kB / 480.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1124, allocations: 0 / 480.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003105/0.1127, allocations: 63.81 kB / 480.1 MB, free: 3.832 MB / 350.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.002089/0.1148, allocations: 1.124 MB / 481.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.1152, allocations: 147.8 kB / 481.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1152, allocations: 0 / 481.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.1154, allocations: 71.97 kB / 481.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.1158, allocations: 67.98 kB / 481.5 MB, free: 2.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/0.1192, allocations: 2.816 MB / 484.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.1196, allocations: 0.7634 MB / 485.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.1198, allocations: 50.19 kB / 485.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.1199, allocations: 83.41 kB / 485.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1199, allocations: 0 / 485.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02997/0.1499, allocations: 7.293 MB / 492.5 MB, free: 7.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.142/8.292, allocations: 11.92 kB / 492.5 MB, free: 7.57 MB / 366.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)