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.006158/0.006158, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001369/0.001369, allocations: 198.4 kB / 16.68 MB, free: 5.926 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.44/1.44, allocations: 205.1 MB / 222.5 MB, free: 4.301 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08028/0.08028, allocations: 10.75 MB / 280.7 MB, free: 10.25 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.00198/0.001981, allocations: 66.72 kB / 390.3 MB, free: 5.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.363, allocations: 49.02 MB / 439.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003677/0.3667, allocations: 1.977 MB / 441.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.3691, allocations: 1.188 MB / 442.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.3693, allocations: 6.688 kB / 442.5 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000951/0.3702, allocations: 301.8 kB / 442.8 MB, free: 2.766 MB / 318.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.0005129/0.3708, allocations: 197.2 kB / 443 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.3716, allocations: 281.7 kB / 443.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.372, allocations: 359.2 kB / 443.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.3722, allocations: 50.33 kB / 443.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.3724, allocations: 152.6 kB / 443.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.3726, allocations: 149.9 kB / 444 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.367e-05/0.3727, allocations: 18.66 kB / 444 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002715/0.373, allocations: 112.3 kB / 444.1 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000125/0.3731, allocations: 91.3 kB / 444.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.3732, allocations: 123.3 kB / 444.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005545/0.3738, allocations: 383.7 kB / 444.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.3738, allocations: 1.5 kB / 444.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.3738, allocations: 4 kB / 444.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3738, allocations: 3.938 kB / 444.7 MB, free: 1.91 MB / 318.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.001117/0.375, allocations: 0.6736 MB / 445.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.375, allocations: 12.3 kB / 445.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.026e-05/0.3751, allocations: 42.34 kB / 445.4 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.3752, allocations: 33.66 kB / 445.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.3756, allocations: 331.1 kB / 445.8 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.3756, allocations: 22.66 kB / 445.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.3757, allocations: 11.78 kB / 445.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003452/0.376, allocations: 152.9 kB / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3761, allocations: 1.406 kB / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.3761, allocations: 2.719 kB / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3761, allocations: 1.5 kB / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000193/0.3763, allocations: 85.75 kB / 446.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000803/0.3771, allocations: 490 kB / 446.6 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004191/0.3775, allocations: 141.7 kB / 446.7 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.3777, allocations: 64.81 kB / 446.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.3777, allocations: 2.688 kB / 446.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.378, allocations: 138.7 kB / 446.9 MB, free: 296 kB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.378, allocations: 0 / 446.9 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006501/0.3787, allocations: 285.6 kB / 447.2 MB, free: 176 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.3787, allocations: 115.8 kB / 447.3 MB, free: 40 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006055/0.3793, allocations: 438 kB / 447.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.3794, allocations: 34.14 kB / 447.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.3795, allocations: 168.4 kB / 447.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.909e-05/0.3796, allocations: 47.61 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.3797, allocations: 45 kB / 448 MB, free: 15.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.3799, allocations: 350.8 kB / 448.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.38, allocations: 50.88 kB / 448.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.3802, allocations: 153.1 kB / 448.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.3806, allocations: 196.9 kB / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.376e-05/0.3807, allocations: 1.031 kB / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000455/0.3811, allocations: 230.5 kB / 449 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3812, allocations: 9.156 kB / 449 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3812, allocations: 6.375 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.3812, allocations: 4.25 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.3813, allocations: 30.17 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3814, allocations: 3.781 kB / 449 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.3815, allocations: 24.52 kB / 449 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.326e-05/0.3815, allocations: 16.91 kB / 449.1 MB, free: 14.77 MB / 334.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.0002852/0.3818, allocations: 182.9 kB / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.3819, allocations: 34.5 kB / 449.3 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.008e-05/0.382, allocations: 31.25 kB / 449.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.382, allocations: 1.719 kB / 449.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.382, allocations: 3.938 kB / 449.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.382, allocations: 6.516 kB / 449.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003335/0.3824, allocations: 305.6 kB / 449.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3824, allocations: 6.141 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.641e-05/0.3824, allocations: 6.5 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3824, allocations: 4 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.3824, allocations: 3.406 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3824, allocations: 0 / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3824, allocations: 3.969 kB / 449.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004821/0.3829, allocations: 264.8 kB / 449.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.431e-05/0.383, allocations: 105.1 kB / 450 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.371e-05/0.3831, allocations: 6.5 kB / 450 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.667e-05/0.3832, allocations: 12.89 kB / 450 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.3833, allocations: 14.27 kB / 450 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.3833, allocations: 10.89 kB / 450 MB, free: 13.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004235/0.3837, allocations: 323.4 kB / 450.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3837, allocations: 3.938 kB / 450.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000449/0.3842, allocations: 64.77 kB / 450.4 MB, free: 13.76 MB / 334.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.001892/0.3861, allocations: 1.139 MB / 451.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003758/0.3865, allocations: 149.7 kB / 451.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3865, allocations: 0 / 451.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.3867, allocations: 84.31 kB / 451.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004611/0.3872, allocations: 78.56 kB / 451.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.3915, allocations: 3.035 MB / 454.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004199/0.392, allocations: 0.7762 MB / 455.7 MB, free: 9.844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.3922, allocations: 44.28 kB / 455.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.3923, allocations: 94.94 kB / 455.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of SimCode: time 2.235e-06/0.3923, allocations: 0 / 455.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03217/0.4245, allocations: 7.895 MB / 463.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.702, allocations: 9 kB / 463.7 MB, free: 4.27 MB / 334.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/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)