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 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_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.005815/0.005815, allocations: 99.34 kB / 15.73 MB, free: 6.043 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.001588/0.001588, allocations: 196 kB / 16.67 MB, free: 5.965 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1795/0.1795, allocations: 11.18 MB / 301.7 MB, free: 1.312 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 67.89 kB / 417.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2379, allocations: 51.97 MB / 469.3 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002888/0.2409, allocations: 2 MB / 471.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001756/0.2426, allocations: 1.265 MB / 472.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.2428, allocations: 6.531 kB / 472.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007711/0.2436, allocations: 294.6 kB / 472.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003875/0.244, allocations: 207.3 kB / 473.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007106/0.2447, allocations: 321.6 kB / 473.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.245, allocations: 344.6 kB / 473.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.2452, allocations: 55.53 kB / 473.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.2453, allocations: 148.6 kB / 473.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.2455, allocations: 145.4 kB / 474.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.935e-05/0.2456, allocations: 17.88 kB / 474.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000212/0.2458, allocations: 116.5 kB / 474.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.892e-05/0.2459, allocations: 84.98 kB / 474.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.246, allocations: 121.9 kB / 474.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003852/0.2464, allocations: 377.4 kB / 474.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2464, allocations: 4 kB / 474.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2464, allocations: 1.375 kB / 474.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.2464, allocations: 4 kB / 474.8 MB, free: 13.38 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.0007697/0.2472, allocations: 0.6702 MB / 475.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2472, allocations: 13.48 kB / 475.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.821e-05/0.2473, allocations: 46.67 kB / 475.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.174e-05/0.2474, allocations: 35.11 kB / 475.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.2477, allocations: 331.2 kB / 475.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.2477, allocations: 17.44 kB / 475.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.2478, allocations: 7.625 kB / 475.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.248, allocations: 153.1 kB / 476 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.2481, allocations: 1.125 kB / 476 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.2481, allocations: 5.125 kB / 476.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.2481, allocations: 6.156 kB / 476.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001719/0.2483, allocations: 72.05 kB / 476.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005398/0.2488, allocations: 484.9 kB / 476.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.2492, allocations: 144 kB / 476.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.2494, allocations: 64.77 kB / 476.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2494, allocations: 6.266 kB / 476.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.2496, allocations: 133 kB / 476.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.684e-06/0.2496, allocations: 0 / 476.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005819/0.2502, allocations: 284.5 kB / 477.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.2503, allocations: 122.1 kB / 477.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.2507, allocations: 423.5 kB / 477.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.2507, allocations: 32.45 kB / 477.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.243e-05/0.2508, allocations: 160.1 kB / 477.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.2508, allocations: 46.92 kB / 478 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.889e-05/0.2509, allocations: 43.98 kB / 478 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.251, allocations: 352.3 kB / 478.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.2511, allocations: 48 kB / 478.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.2512, allocations: 146 kB / 478.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000279/0.2515, allocations: 200.8 kB / 478.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2515, allocations: 1.125 kB / 478.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003608/0.2519, allocations: 227 kB / 479 MB, free: 9.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.2519, allocations: 5.844 kB / 479 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.2519, allocations: 6.156 kB / 479 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.252, allocations: 4.125 kB / 479 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.2521, allocations: 30.61 kB / 479 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2521, allocations: 3.438 kB / 479 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.2522, allocations: 24.72 kB / 479.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.2522, allocations: 15.97 kB / 479.1 MB, free: 9.895 MB / 350.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.0001691/0.2524, allocations: 177.3 kB / 479.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.481e-05/0.2525, allocations: 34.08 kB / 479.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.252e-05/0.2525, allocations: 36.62 kB / 479.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2525, allocations: 1.469 kB / 479.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2526, allocations: 0 / 479.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2526, allocations: 1.469 kB / 479.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.2528, allocations: 301.2 kB / 479.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2528, allocations: 1.281 kB / 479.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.626e-05/0.2528, allocations: 14.97 kB / 479.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2528, allocations: 7.938 kB / 479.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.2528, allocations: 11.52 kB / 479.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2529, allocations: 0 / 479.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2529, allocations: 1.156 kB / 479.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/0.2533, allocations: 262.8 kB / 479.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.2533, allocations: 105.9 kB / 480 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.661e-05/0.2534, allocations: 11.17 kB / 480 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.962e-05/0.2535, allocations: 12.3 kB / 480 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.2535, allocations: 13.92 kB / 480 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.2536, allocations: 6.562 kB / 480 MB, free: 9.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002793/0.2538, allocations: 307.3 kB / 480.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2538, allocations: 3.938 kB / 480.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003368/0.2542, allocations: 68.7 kB / 480.4 MB, free: 8.875 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: 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.001947/0.2561, allocations: 1.147 MB / 481.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003436/0.2565, allocations: 149 kB / 481.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2565, allocations: 1.344 kB / 481.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001485/0.2567, allocations: 75.73 kB / 481.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.2571, allocations: 81.62 kB / 481.9 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/0.2601, allocations: 2.993 MB / 484.9 MB, free: 5.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.2603, allocations: 0.7739 MB / 485.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.2605, allocations: 44.94 kB / 485.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.2606, allocations: 90.25 kB / 485.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2606, allocations: 4 kB / 485.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.2891, allocations: 7.646 MB / 493.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.23/8.519, allocations: 12.05 kB / 493.4 MB, free: 0.8984 MB / 350.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)