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.001187/0.001188, 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.001232/0.001232, 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 1.563/1.563, allocations: 205.1 MB / 222.4 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05931/0.05931, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001652/0.001652, allocations: 71.88 kB / 340.7 MB, free: 23.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1059, allocations: 49.01 MB / 389.7 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.004292/0.1103, allocations: 2.004 MB / 391.7 MB, free: 4.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.1123, allocations: 1.158 MB / 392.8 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.1125, allocations: 11.94 kB / 392.8 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008428/0.1134, allocations: 271.2 kB / 393.1 MB, free: 2.668 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.0005386/0.1139, allocations: 187.3 kB / 393.3 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007656/0.1147, allocations: 295.2 kB / 393.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.1151, allocations: 351.1 kB / 393.9 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1153, allocations: 56.28 kB / 394 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.1156, allocations: 135.5 kB / 394.1 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.1158, allocations: 139.4 kB / 394.2 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.331e-05/0.1158, allocations: 16 kB / 394.3 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.1161, allocations: 103.9 kB / 394.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.816e-05/0.1162, allocations: 75.75 kB / 394.4 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.1163, allocations: 115.3 kB / 394.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.1168, allocations: 347.1 kB / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1168, allocations: 4 kB / 394.9 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1168, allocations: 3.984 kB / 394.9 MB, free: 0.875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1168, allocations: 0 / 394.9 MB, free: 0.875 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.0009164/0.1177, allocations: 0.6342 MB / 395.5 MB, free: 184 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1178, allocations: 11.89 kB / 395.5 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.548e-05/0.1178, allocations: 46.73 kB / 395.6 MB, free: 116 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.301e-05/0.1179, allocations: 32.56 kB / 395.6 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.1183, allocations: 320.2 kB / 395.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.1183, allocations: 19.94 kB / 395.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.1183, allocations: 8 kB / 396 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.1186, allocations: 156.1 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1187, allocations: 0 / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.1187, allocations: 0 / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1187, allocations: 4 kB / 396.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001626/0.1189, allocations: 67.89 kB / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006659/0.1195, allocations: 488.1 kB / 396.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000339/0.1199, allocations: 130.8 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.12, allocations: 68.83 kB / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.1201, allocations: 3.938 kB / 396.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002502/0.1203, allocations: 127.3 kB / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.653e-06/0.1203, allocations: 0 / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005726/0.1209, allocations: 268 kB / 397.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.121, allocations: 110.8 kB / 397.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.1214, allocations: 388.3 kB / 397.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1214, allocations: 33.7 kB / 397.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1215, allocations: 152.4 kB / 397.9 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.1216, allocations: 47.39 kB / 398 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.918e-05/0.1217, allocations: 49.7 kB / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1218, allocations: 346.7 kB / 398.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1219, allocations: 47.92 kB / 398.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.1222, allocations: 144.6 kB / 398.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003259/0.1225, allocations: 188.4 kB / 398.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1225, allocations: 4 kB / 398.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003847/0.1229, allocations: 217.3 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1229, allocations: 12 kB / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1229, allocations: 0 / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.123, allocations: 4 kB / 398.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1231, allocations: 31.92 kB / 399 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.1231, allocations: 7.984 kB / 399 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1232, allocations: 27.77 kB / 399 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.1233, allocations: 8 kB / 399 MB, free: 12.39 MB / 302.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.0002106/0.1235, allocations: 184.2 kB / 399.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.671e-05/0.1235, allocations: 35.61 kB / 399.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.139e-05/0.1236, allocations: 27.08 kB / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1236, allocations: 4 kB / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1236, allocations: 0 / 399.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1236, allocations: 3.938 kB / 399.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.1239, allocations: 297.3 kB / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.1239, allocations: 0 / 399.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.736e-05/0.1239, allocations: 11.94 kB / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1239, allocations: 4 kB / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.1239, allocations: 3.984 kB / 399.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1239, allocations: 0 / 399.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.124, allocations: 4 kB / 399.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003906/0.1243, allocations: 240.6 kB / 399.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.751e-05/0.1244, allocations: 100.8 kB / 399.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/0.1245, allocations: 4 kB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.1246, allocations: 19.98 kB / 399.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.1246, allocations: 7.984 kB / 399.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.1247, allocations: 15.88 kB / 400 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000268/0.1249, allocations: 283 kB / 400.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1249, allocations: 0 / 400.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003062/0.1252, allocations: 67.83 kB / 400.3 MB, free: 11.01 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: 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.001524/0.1268, allocations: 1.109 MB / 401.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003565/0.1271, allocations: 163.7 kB / 401.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1272, allocations: 0.5 kB / 401.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.1273, allocations: 71.97 kB / 401.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.1277, allocations: 84.38 kB / 401.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.1309, allocations: 2.832 MB / 404.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.1313, allocations: 0.7597 MB / 405.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.1314, allocations: 46.25 kB / 405.4 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.1315, allocations: 83.41 kB / 405.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1315, allocations: 0 / 405.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.1599, allocations: 7.16 MB / 412.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/7.927, allocations: 11.69 kB / 412.6 MB, free: 14.6 MB / 318.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)