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.0008823/0.0008827, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005946/0.005946, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.381/1.381, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05325/0.05325, allocations: 10.75 MB / 281.5 MB, free: 10.45 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.0004625/0.0004625, allocations: 16 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08428, allocations: 50.01 MB / 392.4 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002166/0.08649, allocations: 1.691 MB / 394 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.08809, allocations: 1.151 MB / 395.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.003e-05/0.0882, allocations: 4 kB / 395.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007006/0.0889, allocations: 279.4 kB / 395.5 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.08926, allocations: 183.5 kB / 395.7 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005571/0.08983, allocations: 259.5 kB / 395.9 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003337/0.09017, allocations: 351.1 kB / 396.2 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.09029, allocations: 44.3 kB / 396.3 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.09045, allocations: 123.4 kB / 396.4 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.09064, allocations: 143.4 kB / 396.6 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.09067, allocations: 8 kB / 396.6 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.09085, allocations: 87.94 kB / 396.6 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.002e-05/0.09095, allocations: 71.73 kB / 396.7 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.09113, allocations: 140.9 kB / 396.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.09152, allocations: 351 kB / 397.2 MB, free: 436 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.09153, allocations: 0 / 397.2 MB, free: 436 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.09154, allocations: 0 / 397.2 MB, free: 436 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.09155, allocations: 0 / 397.2 MB, free: 436 kB / 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.0009197/0.09248, allocations: 0.6226 MB / 397.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.09252, allocations: 8.031 kB / 397.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.358e-05/0.09259, allocations: 46.73 kB / 397.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.209e-05/0.09266, allocations: 36.55 kB / 397.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.09306, allocations: 324.2 kB / 398.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.0931, allocations: 19.81 kB / 398.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.09313, allocations: 15.98 kB / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.09343, allocations: 156.2 kB / 398.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.09345, allocations: 0 / 398.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.09347, allocations: 0 / 398.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.09349, allocations: 4 kB / 398.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.09366, allocations: 71.91 kB / 398.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006991/0.09437, allocations: 492.2 kB / 399 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004017/0.09478, allocations: 146.6 kB / 399.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.09492, allocations: 64.91 kB / 399.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.09495, allocations: 4 kB / 399.2 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.09521, allocations: 137.9 kB / 399.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.09523, allocations: 0 / 399.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006043/0.09584, allocations: 289.1 kB / 399.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/0.09592, allocations: 110.8 kB / 399.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000457/0.09639, allocations: 416.5 kB / 400.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.09643, allocations: 33.7 kB / 400.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.09656, allocations: 160.4 kB / 400.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.09661, allocations: 43.45 kB / 400.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.101e-05/0.09666, allocations: 29.7 kB / 400.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.09681, allocations: 350.7 kB / 400.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.09692, allocations: 48.2 kB / 400.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.09711, allocations: 144.5 kB / 400.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.09743, allocations: 200.3 kB / 401.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.09744, allocations: 0 / 401.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003759/0.09783, allocations: 229 kB / 401.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.09785, allocations: 4 kB / 401.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.09787, allocations: 4.25 kB / 401.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.09789, allocations: 8 kB / 401.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.098, allocations: 27.92 kB / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.09802, allocations: 11.92 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.09814, allocations: 23.84 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.09817, allocations: 11.94 kB / 401.4 MB, free: 11.86 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.0002243/0.0984, allocations: 184.4 kB / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/0.09844, allocations: 35.56 kB / 401.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.064e-05/0.09852, allocations: 35.28 kB / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.09853, allocations: 8.031 kB / 401.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.09854, allocations: 3.938 kB / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.09856, allocations: 3.984 kB / 401.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.09885, allocations: 305.2 kB / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.09886, allocations: 0 / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.663e-05/0.0989, allocations: 11.98 kB / 402 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.09891, allocations: 0 / 402 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.09893, allocations: 12 kB / 402 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.09894, allocations: 0 / 402 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09894, allocations: 3.938 kB / 402 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004221/0.09937, allocations: 263.3 kB / 402.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.952e-05/0.09946, allocations: 108.8 kB / 402.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.09951, allocations: 11.98 kB / 402.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.468e-05/0.09961, allocations: 16 kB / 402.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.661e-05/0.09967, allocations: 15.88 kB / 402.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.09969, allocations: 8 kB / 402.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003099/0.1, allocations: 307 kB / 402.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1, allocations: 0 / 402.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.1003, allocations: 63.98 kB / 402.8 MB, free: 10.4 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.00158/0.1019, allocations: 1.136 MB / 403.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003486/0.1023, allocations: 151.8 kB / 404.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1023, allocations: 0 / 404.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000153/0.1024, allocations: 68.48 kB / 404.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.1029, allocations: 85.19 kB / 404.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.1065, allocations: 3.051 MB / 407.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.1068, allocations: 0.7675 MB / 408 MB, free: 5.059 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.107, allocations: 63.16 kB / 408.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.1071, allocations: 87.41 kB / 408.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1071, allocations: 0 / 408.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2391/0.3462, allocations: 6.95 MB / 415.1 MB, free: 14.03 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004362/0.3467, allocations: 281.1 kB / 415.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.396, allocations: 3.281 kB / 415.4 MB, free: 13.64 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/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)