Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.001275/0.001275, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001472/0.001472, allocations: 189.6 kB / 16.25 MB, free: 6.629 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.607/1.607, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05773/0.05773, allocations: 10.74 MB / 280.2 MB, free: 10.69 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.001453/0.001453, allocations: 71.84 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 49.01 MB / 389.2 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.004039/0.1097, allocations: 2.049 MB / 391.2 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.1119, allocations: 1.162 MB / 392.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.112, allocations: 3.938 kB / 392.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008306/0.1129, allocations: 291.3 kB / 392.7 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004522/0.1134, allocations: 191.5 kB / 392.8 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007136/0.1141, allocations: 259.6 kB / 393.1 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.1145, allocations: 363.1 kB / 393.5 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.1148, allocations: 52.28 kB / 393.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.1151, allocations: 155.4 kB / 393.7 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003082/0.1154, allocations: 159.4 kB / 393.8 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.1154, allocations: 16 kB / 393.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.1156, allocations: 107.9 kB / 393.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.1158, allocations: 83.73 kB / 394 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.1159, allocations: 135.1 kB / 394.1 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.1164, allocations: 371.1 kB / 394.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1164, allocations: 0 / 394.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1164, allocations: 0 / 394.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1164, allocations: 0 / 394.5 MB, free: 1.129 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.001117/0.1175, allocations: 0.6807 MB / 395.2 MB, free: 396 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1176, allocations: 15.89 kB / 395.2 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.041e-05/0.1177, allocations: 38.73 kB / 395.2 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.341e-05/0.1178, allocations: 32.56 kB / 395.3 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000656/0.1184, allocations: 332.4 kB / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.1185, allocations: 11.94 kB / 395.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.67e-05/0.1185, allocations: 11.94 kB / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005885/0.1191, allocations: 156.2 kB / 395.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.1191, allocations: 0 / 395.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.129e-05/0.1192, allocations: 7.984 kB / 395.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.1192, allocations: 4 kB / 395.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002595/0.1195, allocations: 67.91 kB / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009431/0.1204, allocations: 0.4884 MB / 396.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.121, allocations: 146.7 kB / 396.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.1213, allocations: 52.84 kB / 396.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.1213, allocations: 8 kB / 396.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003657/0.1217, allocations: 141.9 kB / 396.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.054e-06/0.1217, allocations: 0 / 396.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008138/0.1225, allocations: 289.1 kB / 397 MB, free: 14.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.1227, allocations: 106.8 kB / 397.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008524/0.1235, allocations: 445.6 kB / 397.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.1236, allocations: 33.7 kB / 397.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.1238, allocations: 168.4 kB / 397.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.405e-05/0.1238, allocations: 43.45 kB / 397.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.714e-05/0.124, allocations: 49.69 kB / 397.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.1242, allocations: 354.7 kB / 398.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.1243, allocations: 48.14 kB / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.1246, allocations: 152.4 kB / 398.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004623/0.1251, allocations: 196.4 kB / 398.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1251, allocations: 0 / 398.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005213/0.1256, allocations: 225 kB / 398.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.1257, allocations: 7.984 kB / 398.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1257, allocations: 4 kB / 398.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.1257, allocations: 4.25 kB / 398.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.1259, allocations: 35.92 kB / 398.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.1259, allocations: 4 kB / 398.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.1261, allocations: 27.78 kB / 398.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.1261, allocations: 15.92 kB / 398.8 MB, free: 12.44 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" 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: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$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,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.0002968/0.1264, allocations: 172.5 kB / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.847e-05/0.1265, allocations: 43.61 kB / 399.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.102e-05/0.1266, allocations: 35.28 kB / 399.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1266, allocations: 3.938 kB / 399.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1266, allocations: 4 kB / 399.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1266, allocations: 0 / 399.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003991/0.127, allocations: 301.3 kB / 399.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.127, allocations: 0 / 399.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.414e-05/0.1271, allocations: 8 kB / 399.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1271, allocations: 0 / 399.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/0.1271, allocations: 11.98 kB / 399.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1272, allocations: 4 kB / 399.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1272, allocations: 0 / 399.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005633/0.1277, allocations: 263.3 kB / 399.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1278, allocations: 108.7 kB / 399.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.608e-05/0.1279, allocations: 11.98 kB / 399.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.128, allocations: 7.938 kB / 399.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.1281, allocations: 19.97 kB / 399.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.1282, allocations: 8 kB / 399.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004616/0.1287, allocations: 327.1 kB / 400.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1287, allocations: 4 kB / 400.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004929/0.1292, allocations: 63.98 kB / 400.2 MB, free: 10.98 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,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 (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002234/0.1314, allocations: 1.136 MB / 401.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005482/0.132, allocations: 159.7 kB / 401.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.132, allocations: 0 / 401.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002259/0.1322, allocations: 79.91 kB / 401.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.1328, allocations: 79.06 kB / 401.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.1383, allocations: 3.137 MB / 404.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004952/0.1388, allocations: 0.7791 MB / 405.6 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002043/0.139, allocations: 50.94 kB / 405.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.1392, allocations: 95.39 kB / 405.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1392, allocations: 0 / 405.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.1671, allocations: 7.479 MB / 413.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004181/0.1676, allocations: 286 kB / 413.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.221, allocations: 0 / 413.5 MB, free: 13.55 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)