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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008533/0.0008533, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8783/0.8783, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03704/0.03704, allocations: 8.61 MB / 267.8 MB, free: 5.121 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 395.1 MB, free: 1.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.332e-05/1.478e-05, allocations: 6.219 kB / 395.1 MB, free: 1.473 MB / 314.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.00219/0.002204, allocations: 1.96 MB / 397 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.00389, allocations: 1.34 MB / 398.4 MB, free: 14.15 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.738e-05/0.003987, allocations: 3.938 kB / 398.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005102/0.004497, allocations: 287 kB / 398.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003528/0.00485, allocations: 262 kB / 398.9 MB, free: 13.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.005242, allocations: 255.2 kB / 399.2 MB, free: 13.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.005528, allocations: 366.9 kB / 399.5 MB, free: 13 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.278e-05/0.005621, allocations: 36.91 kB / 399.6 MB, free: 12.97 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.005794, allocations: 187.5 kB / 399.7 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.005918, allocations: 127.7 kB / 399.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.383e-05/0.005942, allocations: 20 kB / 399.9 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.00609, allocations: 119.8 kB / 400 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.209e-05/0.006162, allocations: 79.69 kB / 400.1 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.041e-05/0.006223, allocations: 67.77 kB / 400.1 MB, free: 12.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003134/0.006536, allocations: 378.8 kB / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.452e-06/0.006537, allocations: 0 / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.006538, allocations: 0 / 400.5 MB, free: 12.01 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.006543, allocations: 4 kB / 400.5 MB, free: 12 MB / 330.7 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.0006305/0.007173, allocations: 0.5896 MB / 401.1 MB, free: 11.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.007203, allocations: 12.03 kB / 401.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.168e-05/0.007235, allocations: 42.73 kB / 401.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.387e-05/0.007279, allocations: 32.7 kB / 401.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.007551, allocations: 269.7 kB / 401.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.007568, allocations: 16.55 kB / 401.5 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.007581, allocations: 4.375 kB / 401.5 MB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.007757, allocations: 140.8 kB / 401.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.007763, allocations: 4 kB / 401.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.007775, allocations: 4 kB / 401.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.007779, allocations: 0 / 401.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.007889, allocations: 75.89 kB / 401.7 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004536/0.008342, allocations: 423.6 kB / 402.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.008545, allocations: 142.5 kB / 402.3 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.851e-05/0.008623, allocations: 56.83 kB / 402.3 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.008635, allocations: 0 / 402.3 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001564/0.008791, allocations: 132.2 kB / 402.4 MB, free: 9.941 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 9.52e-07/0.008792, allocations: 0 / 402.4 MB, free: 9.941 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003649/0.009157, allocations: 280.3 kB / 402.7 MB, free: 9.664 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.009186, allocations: 55.41 kB / 402.8 MB, free: 9.598 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.009474, allocations: 408.5 kB / 403.2 MB, free: 9.191 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.00949, allocations: 37.7 kB / 403.2 MB, free: 9.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.615e-05/0.009576, allocations: 160.4 kB / 403.4 MB, free: 8.984 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.009609, allocations: 51.61 kB / 403.4 MB, free: 8.934 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-05/0.009655, allocations: 45.7 kB / 403.5 MB, free: 8.883 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.337e-05/0.009739, allocations: 342.8 kB / 403.8 MB, free: 8.539 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.776e-05/0.009806, allocations: 51.92 kB / 403.8 MB, free: 8.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.009926, allocations: 185.6 kB / 404 MB, free: 8.258 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.01013, allocations: 192.4 kB / 404.2 MB, free: 8.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.01013, allocations: 0 / 404.2 MB, free: 8.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002403/0.01037, allocations: 245.3 kB / 404.4 MB, free: 7.793 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.01038, allocations: 8 kB / 404.5 MB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.01038, allocations: 4 kB / 404.5 MB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.828e-06/0.01039, allocations: 0 / 404.5 MB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.064e-05/0.01047, allocations: 31.92 kB / 404.5 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.01047, allocations: 4 kB / 404.5 MB, free: 7.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.285e-05/0.01054, allocations: 23.88 kB / 404.5 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.01055, allocations: 8 kB / 404.5 MB, free: 7.715 MB / 330.7 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.0001397/0.01069, allocations: 181.1 kB / 404.7 MB, free: 7.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.01072, allocations: 27.81 kB / 404.7 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002905/0.01101, allocations: 251.2 kB / 405 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.01101, allocations: 4 kB / 405 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.01102, allocations: 0 / 405 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.01102, allocations: 3.984 kB / 405 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.01133, allocations: 252.5 kB / 405.2 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.01133, allocations: 4 kB / 405.2 MB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.602e-05/0.01136, allocations: 15.92 kB / 405.2 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.01136, allocations: 0 / 405.2 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.01137, allocations: 4 kB / 405.2 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.01137, allocations: 0 / 405.2 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.01137, allocations: 3.984 kB / 405.3 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002663/0.01164, allocations: 264.8 kB / 405.5 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.318e-05/0.01167, allocations: 39.8 kB / 405.6 MB, free: 6.613 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.01169, allocations: 4 kB / 405.6 MB, free: 6.609 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.581e-05/0.01174, allocations: 11.98 kB / 405.6 MB, free: 6.598 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.01178, allocations: 15.98 kB / 405.6 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.01179, allocations: 7.984 kB / 405.6 MB, free: 6.574 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002027/0.01199, allocations: 295 kB / 405.9 MB, free: 6.281 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01199, allocations: 3.938 kB / 405.9 MB, free: 6.277 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002168/0.01221, allocations: 67.81 kB / 405.9 MB, free: 6.211 MB / 330.7 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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * 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.001089/0.0133, allocations: 1.17 MB / 407.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.01354, allocations: 159.7 kB / 407.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01354, allocations: 0 / 407.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.874e-05/0.01363, allocations: 74.56 kB / 407.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.01388, allocations: 66.45 kB / 407.4 MB, free: 4.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.0162, allocations: 2.929 MB / 410.3 MB, free: 1.836 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.867e-05/0.01629, allocations: 159.1 kB / 410.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.413e-05/0.01638, allocations: 46.25 kB / 410.5 MB, free: 1.617 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.01649, allocations: 92.47 kB / 410.6 MB, free: 1.523 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01649, allocations: 0 / 410.6 MB, free: 1.523 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.149/0.1655, allocations: 8.413 MB / 419 MB, free: 26.38 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.879/7.045, allocations: 4.562 kB / 419 MB, free: 26.38 MB / 330.7 MB " [Timeout remaining time 653] (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 --stepSize=0.02 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.792425335384905] Failed to read output from testmodel.py, exit status != 0: 7.148960447870195 7.156461906 7.148534383 Calling exit ...