Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",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.001005/0.001005, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001045/0.001045, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.4 MB / 222.1 MB, free: 5.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05848/0.05848, allocations: 10.73 MB / 281.1 MB, free: 10.43 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.0006321/0.0006319, allocations: 12 kB / 341.7 MB, free: 23.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1146, allocations: 50.01 MB / 391.7 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002356/0.117, allocations: 1.637 MB / 393.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.1187, allocations: 1.062 MB / 394.4 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.1189, allocations: 3.938 kB / 394.4 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007395/0.1196, allocations: 259.4 kB / 394.7 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000348/0.12, allocations: 167.6 kB / 394.8 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000665/0.1207, allocations: 243.4 kB / 395.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002986/0.121, allocations: 215.6 kB / 395.3 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.1211, allocations: 48.23 kB / 395.3 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.1213, allocations: 119.5 kB / 395.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.1215, allocations: 119.6 kB / 395.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.1215, allocations: 8 kB / 395.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.1217, allocations: 83.81 kB / 395.6 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.976e-05/0.1218, allocations: 67.8 kB / 395.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.323e-05/0.1218, allocations: 65.52 kB / 395.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002991/0.1222, allocations: 279.7 kB / 396 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1222, allocations: 4 kB / 396 MB, free: 1.305 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1222, allocations: 0 / 396 MB, free: 1.305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1222, allocations: 3.938 kB / 396 MB, free: 1.301 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.0008721/0.1231, allocations: 0.5991 MB / 396.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.1231, allocations: 12.03 kB / 396.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.557e-05/0.1232, allocations: 46.55 kB / 396.7 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.948e-05/0.1233, allocations: 27.62 kB / 396.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.1237, allocations: 331.1 kB / 397.1 MB, free: 192 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.1237, allocations: 8.125 kB / 397.1 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.1238, allocations: 12 kB / 397.1 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.1241, allocations: 153.2 kB / 397.2 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1241, allocations: 3.953 kB / 397.2 MB, free: 0 / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.808e-05/0.1241, allocations: 8.078 kB / 397.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1242, allocations: 0 / 397.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.1243, allocations: 72.33 kB / 397.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000706/0.125, allocations: 492.7 kB / 397.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004088/0.1255, allocations: 146.8 kB / 397.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.1255, allocations: 3.906 kB / 397.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002572/0.1258, allocations: 142.1 kB / 398.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.936e-06/0.1258, allocations: 7.984 kB / 398.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006258/0.1264, allocations: 358.2 kB / 398.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.1265, allocations: 110.8 kB / 398.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004389/0.1269, allocations: 412.5 kB / 398.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.127, allocations: 33.7 kB / 399 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1271, allocations: 164.4 kB / 399.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/0.1272, allocations: 43.59 kB / 399.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/0.1272, allocations: 7.938 kB / 399.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.1273, allocations: 346.8 kB / 399.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.1274, allocations: 48.2 kB / 399.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.1276, allocations: 148.4 kB / 399.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.1278, allocations: 55.94 kB / 399.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1278, allocations: 0 / 399.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003821/0.1282, allocations: 229 kB / 400 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1282, allocations: 8 kB / 400 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1282, allocations: 0 / 400 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1283, allocations: 7.984 kB / 400 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.1284, allocations: 35.92 kB / 400 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.1284, allocations: 4.125 kB / 400 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.1285, allocations: 32.09 kB / 400.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.1285, allocations: 11.94 kB / 400.1 MB, free: 12.93 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,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002429/0.1288, allocations: 188.1 kB / 400.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.843e-05/0.1288, allocations: 27.62 kB / 400.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.09e-05/0.1289, allocations: 39.28 kB / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1289, allocations: 3.984 kB / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1289, allocations: 0 / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.129, allocations: 3.938 kB / 400.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003033/0.1293, allocations: 305.3 kB / 400.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1293, allocations: 3.984 kB / 400.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.347e-05/0.1293, allocations: 7.938 kB / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1293, allocations: 4 kB / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.1294, allocations: 0 / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1294, allocations: 0 / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1294, allocations: 4 kB / 400.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.1298, allocations: 259.3 kB / 400.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.593e-05/0.1299, allocations: 116.6 kB / 401 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/0.13, allocations: 11.98 kB / 401 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.972e-05/0.1301, allocations: 8 kB / 401.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.1301, allocations: 15.97 kB / 401.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.1301, allocations: 8 kB / 401.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003096/0.1305, allocations: 311 kB / 401.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1305, allocations: 0 / 401.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.1308, allocations: 68.03 kB / 401.4 MB, free: 11.48 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 (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.001602/0.1324, allocations: 1.128 MB / 402.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.1328, allocations: 151.8 kB / 402.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1328, allocations: 0 / 402.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000147/0.133, allocations: 79.89 kB / 402.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.1333, allocations: 82.14 kB / 402.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002916/0.1363, allocations: 3.026 MB / 405.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.1366, allocations: 0.7832 MB / 406.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.1368, allocations: 46.95 kB / 406.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.1369, allocations: 91.39 kB / 406.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1369, allocations: 0 / 406.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.156, allocations: 6.859 MB / 413.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001974/0.1562, allocations: 248.1 kB / 413.9 MB, free: 14.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.077, allocations: 0 / 413.9 MB, free: 14.92 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1) Environment - environmentSimulation: