Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",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.005489/0.005489, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001126/0.001126, allocations: 186.9 kB / 16.67 MB, free: 5.977 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.471/1.471, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05961/0.05961, allocations: 10.75 MB / 280.7 MB, free: 10.46 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.002755/0.002755, allocations: 82.7 kB / 390.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3067/0.3094, allocations: 49.01 MB / 439.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.004293/0.3138, allocations: 1.988 MB / 441.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002341/0.3161, allocations: 1.182 MB / 442.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002408/0.3164, allocations: 2.719 kB / 442.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009373/0.3173, allocations: 279.6 kB / 442.8 MB, free: 2.805 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.0006254/0.318, allocations: 191.5 kB / 443 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009924/0.319, allocations: 278.5 kB / 443.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009804/0.32, allocations: 343.5 kB / 443.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003005/0.3203, allocations: 61.23 kB / 443.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005095/0.3208, allocations: 138.9 kB / 443.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004831/0.3213, allocations: 139.2 kB / 443.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.3214, allocations: 18.72 kB / 443.9 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004949/0.3219, allocations: 102.8 kB / 444 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.3222, allocations: 82.81 kB / 444.1 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002909/0.3225, allocations: 115.9 kB / 444.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.3235, allocations: 354.4 kB / 444.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3236, allocations: 4 kB / 444.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3236, allocations: 1.312 kB / 444.6 MB, free: 1.977 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.3236, allocations: 0.5156 kB / 444.6 MB, free: 1.977 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.001873/0.3255, allocations: 0.6441 MB / 445.2 MB, free: 1.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3255, allocations: 12.86 kB / 445.2 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.839e-05/0.3256, allocations: 49.59 kB / 445.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.3257, allocations: 31.64 kB / 445.3 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005227/0.3263, allocations: 316.3 kB / 445.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.3263, allocations: 14.3 kB / 445.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.3263, allocations: 12.42 kB / 445.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003597/0.3267, allocations: 150.8 kB / 445.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.3267, allocations: 4 kB / 445.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.3268, allocations: 6.469 kB / 445.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.3268, allocations: 3.094 kB / 445.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.327, allocations: 72.02 kB / 445.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008455/0.3278, allocations: 476.3 kB / 446.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.3282, allocations: 146.4 kB / 446.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.3284, allocations: 53.69 kB / 446.6 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.3284, allocations: 2.75 kB / 446.6 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.3287, allocations: 139.1 kB / 446.7 MB, free: 392 kB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.753e-06/0.3287, allocations: 1.281 kB / 446.7 MB, free: 392 kB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006735/0.3294, allocations: 266.3 kB / 447 MB, free: 280 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.3294, allocations: 107.7 kB / 447.1 MB, free: 152 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/0.33, allocations: 385.4 kB / 447.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.3301, allocations: 37.11 kB / 447.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.3302, allocations: 162.9 kB / 447.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.252e-05/0.3303, allocations: 42.34 kB / 447.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.641e-05/0.3304, allocations: 48.83 kB / 447.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3305, allocations: 349.4 kB / 448.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.3307, allocations: 42.06 kB / 448.1 MB, free: 15.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.3309, allocations: 142.4 kB / 448.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000329/0.3312, allocations: 187.7 kB / 448.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3312, allocations: 0 / 448.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004553/0.3317, allocations: 222.6 kB / 448.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3317, allocations: 6.156 kB / 448.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3317, allocations: 3.531 kB / 448.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.3318, allocations: 2.469 kB / 448.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.3319, allocations: 35.81 kB / 448.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.3319, allocations: 7.234 kB / 448.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.3321, allocations: 24.02 kB / 448.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.3321, allocations: 8.125 kB / 448.7 MB, free: 14.96 MB / 334.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0003052/0.3324, allocations: 183.8 kB / 448.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.165e-05/0.3325, allocations: 29.92 kB / 448.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.222e-05/0.3326, allocations: 34.7 kB / 449 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3326, allocations: 2.562 kB / 449 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3326, allocations: 0 / 449 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.3326, allocations: 3.938 kB / 449 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003607/0.333, allocations: 291.6 kB / 449.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.333, allocations: 1.219 kB / 449.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.36e-05/0.3331, allocations: 10.3 kB / 449.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3331, allocations: 8.906 kB / 449.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.3331, allocations: 2.438 kB / 449.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3331, allocations: 1.156 kB / 449.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3331, allocations: 0 / 449.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005393/0.3337, allocations: 257.8 kB / 449.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.3338, allocations: 96.23 kB / 449.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.237e-05/0.3338, allocations: 11.58 kB / 449.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.162e-05/0.3339, allocations: 5.188 kB / 449.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/0.334, allocations: 14.02 kB / 449.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.3341, allocations: 13.42 kB / 449.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003998/0.3345, allocations: 279.8 kB / 449.9 MB, free: 14 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3345, allocations: 0 / 449.9 MB, free: 14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004144/0.3349, allocations: 67.08 kB / 450 MB, free: 13.98 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.00153/0.3364, allocations: 1.11 MB / 451.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003675/0.3368, allocations: 150.3 kB / 451.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3368, allocations: 0 / 451.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.337, allocations: 76.09 kB / 451.3 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.3375, allocations: 77.39 kB / 451.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.3409, allocations: 2.804 MB / 454.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.3413, allocations: 0.7632 MB / 455 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.3414, allocations: 46.06 kB / 455 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3416, allocations: 85.38 kB / 455.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3416, allocations: 0 / 455.1 MB, free: 10.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.3687, allocations: 7.408 MB / 462.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.264/8.633, allocations: 4.062 kB / 462.5 MB, free: 5.418 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)