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.0007455/0.0007457, allocations: 91.84 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.000845/0.0008451, 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.221/1.221, allocations: 205.4 MB / 222.1 MB, free: 5.371 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05187/0.05187, allocations: 10.74 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.0004657/0.0004658, allocations: 15.98 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07129/0.07177, allocations: 50.01 MB / 391.7 MB, free: 5.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002129/0.07393, allocations: 1.645 MB / 393.4 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.07541, allocations: 1.097 MB / 394.5 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.855e-05/0.07552, allocations: 7.938 kB / 394.5 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006252/0.07615, allocations: 275.4 kB / 394.8 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000313/0.07647, allocations: 163.5 kB / 394.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005427/0.07702, allocations: 247.5 kB / 395.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.07734, allocations: 307.1 kB / 395.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.07745, allocations: 52.22 kB / 395.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.07761, allocations: 131.5 kB / 395.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.07776, allocations: 127.5 kB / 395.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.07779, allocations: 4 kB / 395.8 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.07795, allocations: 87.88 kB / 395.9 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.221e-05/0.07804, allocations: 71.73 kB / 395.9 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.937e-05/0.07811, allocations: 69.58 kB / 396 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.07839, allocations: 271.7 kB / 396.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.0784, allocations: 0 / 396.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.07841, allocations: 0 / 396.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.07842, allocations: 3.938 kB / 396.3 MB, free: 1.102 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.0007261/0.07915, allocations: 0.6185 MB / 396.9 MB, free: 432 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.07919, allocations: 11.97 kB / 396.9 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.07924, allocations: 46.55 kB / 396.9 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.039e-05/0.07929, allocations: 31.62 kB / 397 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.07964, allocations: 319.1 kB / 397.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.07967, allocations: 12.17 kB / 397.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.0797, allocations: 19.98 kB / 397.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.07997, allocations: 149.3 kB / 397.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.07999, allocations: 3.953 kB / 397.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.08001, allocations: 4 kB / 397.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.08002, allocations: 4 kB / 397.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.08018, allocations: 72.27 kB / 397.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005693/0.08076, allocations: 488.8 kB / 398 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/0.08112, allocations: 154.8 kB / 398.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.08124, allocations: 52.84 kB / 398.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.08128, allocations: 4 kB / 398.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.08152, allocations: 137.9 kB / 398.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.855e-06/0.08154, allocations: 4 kB / 398.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005079/0.08205, allocations: 281.1 kB / 398.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.08211, allocations: 106.8 kB / 398.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.08251, allocations: 420.5 kB / 399.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.08254, allocations: 29.7 kB / 399.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.08265, allocations: 160.4 kB / 399.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.08269, allocations: 47.44 kB / 399.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-06/0.0827, allocations: 4 kB / 399.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.08282, allocations: 358.8 kB / 399.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.741e-05/0.08293, allocations: 44.22 kB / 399.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.08309, allocations: 144.4 kB / 399.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.08322, allocations: 63.98 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.08323, allocations: 0 / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003547/0.08359, allocations: 236.9 kB / 400.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.08361, allocations: 4 kB / 400.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.08363, allocations: 4 kB / 400.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.08364, allocations: 4 kB / 400.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.08375, allocations: 31.92 kB / 400.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.08377, allocations: 4 kB / 400.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.08388, allocations: 32.02 kB / 400.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.08391, allocations: 12 kB / 400.3 MB, free: 12.75 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.0001869/0.0841, allocations: 188.1 kB / 400.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.08414, allocations: 31.61 kB / 400.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.331e-05/0.08421, allocations: 35.28 kB / 400.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.08422, allocations: 8 kB / 400.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.08423, allocations: 0 / 400.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.08424, allocations: 0 / 400.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.08448, allocations: 301.4 kB / 400.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.08449, allocations: 3.984 kB / 400.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.269e-05/0.08453, allocations: 8 kB / 400.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.08454, allocations: 0 / 400.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.08456, allocations: 12.11 kB / 400.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.08457, allocations: 4 kB / 400.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.08457, allocations: 3.938 kB / 400.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/0.08495, allocations: 263.5 kB / 401.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.115e-05/0.08503, allocations: 112.7 kB / 401.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/0.08508, allocations: 8 kB / 401.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.743e-05/0.08518, allocations: 15.98 kB / 401.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.97e-05/0.08522, allocations: 7.984 kB / 401.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.08525, allocations: 8 kB / 401.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002849/0.08554, allocations: 311 kB / 401.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08555, allocations: 0 / 401.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.08586, allocations: 63.89 kB / 401.7 MB, free: 11.3 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.001383/0.08725, allocations: 1.143 MB / 402.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003049/0.08756, allocations: 151.8 kB / 403 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.08758, allocations: 0 / 403 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.08772, allocations: 79.91 kB / 403 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.08809, allocations: 69.31 kB / 403.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.09034, allocations: 1.722 MB / 404.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.09063, allocations: 0.7755 MB / 405.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.09076, allocations: 42.95 kB / 405.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.09088, allocations: 91.41 kB / 405.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09089, allocations: 0 / 405.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01699/0.1079, allocations: 6.867 MB / 412.6 MB, free: 404 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.1081, allocations: 257.9 kB / 412.8 MB, free: 40 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.75, allocations: 0 / 412.8 MB, free: 40 kB / 302.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: