Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.0008262/0.0008263, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0008294/0.0008294, allocations: 168.7 kB / 15.95 MB, free: 204 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.19/1.19, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05238/0.05238, allocations: 10.74 MB / 281.1 MB, free: 10.55 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.0004798/0.0004799, allocations: 16 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0671/0.06759, allocations: 50 MB / 391.7 MB, free: 5.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.001967/0.06959, allocations: 1.645 MB / 393.4 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.0711, allocations: 1.097 MB / 394.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.07125, allocations: 7.938 kB / 394.5 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000671/0.07194, allocations: 279.3 kB / 394.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000364/0.07231, allocations: 171.5 kB / 394.9 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006279/0.07294, allocations: 243.6 kB / 395.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003193/0.07327, allocations: 319.1 kB / 395.5 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.07339, allocations: 48.22 kB / 395.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.07354, allocations: 123.5 kB / 395.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.0737, allocations: 139.5 kB / 395.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.07373, allocations: 4 kB / 395.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.07389, allocations: 87.88 kB / 395.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.892e-05/0.07399, allocations: 79.72 kB / 396 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.07405, allocations: 65.58 kB / 396 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.07432, allocations: 279.6 kB / 396.3 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.07433, allocations: 3.938 kB / 396.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.07434, allocations: 0 / 396.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.07435, allocations: 0 / 396.3 MB, free: 1.078 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.0007352/0.07509, allocations: 0.6302 MB / 396.9 MB, free: 396 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.07513, allocations: 8.031 kB / 396.9 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.201e-05/0.07518, allocations: 46.55 kB / 397 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.468e-05/0.07524, allocations: 35.53 kB / 397 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.07559, allocations: 315.3 kB / 397.3 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.07562, allocations: 16.19 kB / 397.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.07564, allocations: 8 kB / 397.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.07592, allocations: 153.3 kB / 397.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.07593, allocations: 3.781 kB / 397.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.07595, allocations: 4 kB / 397.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.07597, allocations: 4 kB / 397.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.07613, allocations: 72.27 kB / 397.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005658/0.0767, allocations: 496.8 kB / 398.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.07705, allocations: 146.6 kB / 398.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.07718, allocations: 60.97 kB / 398.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.07721, allocations: 4 kB / 398.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.07743, allocations: 134.1 kB / 398.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.07745, allocations: 0 / 398.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005035/0.07796, allocations: 285.1 kB / 398.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.07802, allocations: 110.8 kB / 398.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004126/0.07844, allocations: 445.5 kB / 399.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.07847, allocations: 33.7 kB / 399.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.07858, allocations: 168.4 kB / 399.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.671e-05/0.07862, allocations: 43.45 kB / 399.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/0.07864, allocations: 4 kB / 399.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.07875, allocations: 350.7 kB / 399.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.07886, allocations: 52.2 kB / 399.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.07902, allocations: 148.4 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.07916, allocations: 59.98 kB / 400.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.07917, allocations: 3.938 kB / 400.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003529/0.07953, allocations: 229.1 kB / 400.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.07955, allocations: 4 kB / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.07956, allocations: 4 kB / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.07958, allocations: 4 kB / 400.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.07969, allocations: 31.92 kB / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.0797, allocations: 0 / 400.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.07982, allocations: 35.98 kB / 400.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.07984, allocations: 8 kB / 400.4 MB, free: 12.69 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.000185/0.08003, allocations: 200.2 kB / 400.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.08008, allocations: 31.66 kB / 400.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.906e-05/0.08015, allocations: 39.28 kB / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.08016, allocations: 0 / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.08017, allocations: 4 kB / 400.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.08018, allocations: 3.984 kB / 400.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.08042, allocations: 305.4 kB / 400.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.08043, allocations: 0 / 400.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.508e-05/0.08047, allocations: 8 kB / 401 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.08048, allocations: 3.938 kB / 401 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.0805, allocations: 8 kB / 401 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.08051, allocations: 3.984 kB / 401 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.08051, allocations: 0 / 401 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003787/0.0809, allocations: 267.4 kB / 401.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.08098, allocations: 120.6 kB / 401.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.08103, allocations: 4 kB / 401.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.722e-05/0.08112, allocations: 15.98 kB / 401.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.08117, allocations: 7.984 kB / 401.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.0812, allocations: 12 kB / 401.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003001/0.0815, allocations: 319.1 kB / 401.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08151, allocations: 4 kB / 401.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.08181, allocations: 63.98 kB / 401.8 MB, free: 11.2 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.001372/0.08319, allocations: 1.131 MB / 402.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.08351, allocations: 151.8 kB / 403 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.08352, allocations: 0 / 403 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.08366, allocations: 83.81 kB / 403.1 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003538/0.08402, allocations: 69.31 kB / 403.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.08634, allocations: 1.768 MB / 405 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.08663, allocations: 0.7794 MB / 405.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.08677, allocations: 51.19 kB / 405.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.08689, allocations: 95.39 kB / 405.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.0869, allocations: 0 / 405.9 MB, free: 7.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.1039, allocations: 6.987 MB / 412.9 MB, free: 140 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.1041, allocations: 257.9 kB / 413.1 MB, free: 15.78 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/1.865, allocations: 0 / 413.1 MB, free: 15.78 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1) Environment - environmentSimulation: