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.00122/0.00122, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.474/2.474, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1394/0.1394, allocations: 10.74 MB / 280.5 MB, free: 10.51 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.003182/0.003182, allocations: 67.89 kB / 340.6 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1859, allocations: 49.02 MB / 389.7 MB, free: 6.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.006557/0.1925, allocations: 2 MB / 391.7 MB, free: 4.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003911/0.1965, allocations: 1.17 MB / 392.8 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002514/0.1968, allocations: 4 kB / 392.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005744/0.2026, allocations: 291.2 kB / 393.1 MB, free: 2.645 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001113/0.2037, allocations: 199.3 kB / 393.3 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.2053, allocations: 295.3 kB / 393.6 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009995/0.2063, allocations: 359.1 kB / 394 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.2066, allocations: 48.3 kB / 394 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005307/0.2072, allocations: 147.4 kB / 394.2 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004201/0.2076, allocations: 147.4 kB / 394.3 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.2078, allocations: 24 kB / 394.3 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004913/0.2083, allocations: 103.9 kB / 394.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.2085, allocations: 87.69 kB / 394.5 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.2088, allocations: 123.3 kB / 394.6 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000956/0.2098, allocations: 359.1 kB / 395 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.2098, allocations: 4 kB / 395 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2098, allocations: 0 / 395 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.2099, allocations: 0 / 395 MB, free: 0.7852 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.001824/0.2117, allocations: 0.6652 MB / 395.6 MB, free: 60 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.561e-05/0.2118, allocations: 15.89 kB / 395.7 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.2119, allocations: 38.81 kB / 395.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.2121, allocations: 32.56 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007639/0.2129, allocations: 336 kB / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.2129, allocations: 11.94 kB / 396.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/0.213, allocations: 19.92 kB / 396.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/0.2178, allocations: 152.2 kB / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.2178, allocations: 0 / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.2179, allocations: 4 kB / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.2179, allocations: 0 / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003559/0.2183, allocations: 75.89 kB / 396.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.2196, allocations: 488.2 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008264/0.2205, allocations: 146.7 kB / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/0.2208, allocations: 60.86 kB / 397 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.2208, allocations: 0 / 397 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.2214, allocations: 141.9 kB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 4.539e-06/0.2214, allocations: 0 / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.001245/0.2227, allocations: 289.1 kB / 397.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.2228, allocations: 110.8 kB / 397.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009791/0.2238, allocations: 412.5 kB / 397.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.393e-05/0.2239, allocations: 37.7 kB / 398 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.2241, allocations: 160.4 kB / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.2243, allocations: 47.44 kB / 398.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.2244, allocations: 45.7 kB / 398.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.2247, allocations: 350.7 kB / 398.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.2249, allocations: 48.2 kB / 398.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.2253, allocations: 149.6 kB / 398.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000678/0.226, allocations: 192.4 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.226, allocations: 4 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008688/0.2269, allocations: 225 kB / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.2269, allocations: 8 kB / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.2269, allocations: 0 / 399.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.647e-05/0.227, allocations: 4 kB / 399.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002478/0.2273, allocations: 36.17 kB / 399.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.327e-05/0.2273, allocations: 15.92 kB / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.2276, allocations: 15.84 kB / 399.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.661e-05/0.2277, allocations: 15.94 kB / 399.3 MB, free: 12.16 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.0004199/0.2281, allocations: 176.4 kB / 399.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.2282, allocations: 31.62 kB / 399.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/0.2284, allocations: 35.28 kB / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2284, allocations: 0 / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.2284, allocations: 4 kB / 399.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.2284, allocations: 7.922 kB / 399.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005169/0.229, allocations: 301.4 kB / 399.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.229, allocations: 7.984 kB / 399.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.537e-05/0.2291, allocations: 15.98 kB / 399.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.2291, allocations: 0 / 399.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.2292, allocations: 4 kB / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.2292, allocations: 0 / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2292, allocations: 3.938 kB / 399.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009032/0.2301, allocations: 275.3 kB / 400.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.2303, allocations: 100.8 kB / 400.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.657e-05/0.2304, allocations: 8 kB / 400.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.2306, allocations: 7.984 kB / 400.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/0.2307, allocations: 11.98 kB / 400.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.2308, allocations: 8 kB / 400.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006519/0.2314, allocations: 315 kB / 400.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.2314, allocations: 0 / 400.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006227/0.2321, allocations: 67.91 kB / 400.6 MB, free: 10.72 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.003117/0.2352, allocations: 1.133 MB / 401.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007193/0.236, allocations: 159.8 kB / 401.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.236, allocations: 0 / 401.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.2363, allocations: 79.91 kB / 402 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008171/0.2371, allocations: 77.41 kB / 402 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006879/0.244, allocations: 3.002 MB / 405.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005508/0.2446, allocations: 0.7791 MB / 405.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002683/0.2449, allocations: 47.19 kB / 405.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.2452, allocations: 95.39 kB / 406 MB, free: 5.281 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2452, allocations: 0 / 406 MB, free: 5.281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1579/0.4031, allocations: 7.504 MB / 413.5 MB, free: 13.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.48/17.88, allocations: 12.36 kB / 413.5 MB, free: 13.76 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 & 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)