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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002124/0.002124, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06142/0.06142, allocations: 11.34 MB / 314 MB, free: 0.8008 MB / 238.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 63.91 kB / 437.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.262, allocations: 54.83 MB / 492.2 MB, free: 23.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002878/0.2649, allocations: 2.01 MB / 494.2 MB, free: 22.26 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.2666, allocations: 1.278 MB / 495.4 MB, free: 21.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.2667, allocations: 6.969 kB / 495.4 MB, free: 21.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008202/0.2675, allocations: 301.3 kB / 495.7 MB, free: 21.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004221/0.268, allocations: 207.2 kB / 495.9 MB, free: 21.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007433/0.2687, allocations: 319.8 kB / 496.3 MB, free: 21.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003731/0.2691, allocations: 346.5 kB / 496.6 MB, free: 20.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.2692, allocations: 36.94 kB / 496.6 MB, free: 20.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.2694, allocations: 156.6 kB / 496.8 MB, free: 20.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.2696, allocations: 158.8 kB / 496.9 MB, free: 20.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.2696, allocations: 22.84 kB / 497 MB, free: 20.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.2698, allocations: 112 kB / 497.1 MB, free: 20.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.2699, allocations: 91.89 kB / 497.2 MB, free: 20.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.27, allocations: 124.3 kB / 497.3 MB, free: 20.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004794/0.2705, allocations: 386.3 kB / 497.7 MB, free: 20.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2705, allocations: 0 / 497.7 MB, free: 20.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2705, allocations: 0 / 497.7 MB, free: 20.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.2705, allocations: 1.281 kB / 497.7 MB, free: 20.43 MB / 366.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.0009083/0.2714, allocations: 0.6796 MB / 498.3 MB, free: 19.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2714, allocations: 14.05 kB / 498.4 MB, free: 19.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.427e-05/0.2715, allocations: 45.92 kB / 498.4 MB, free: 19.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.431e-05/0.2715, allocations: 32.47 kB / 498.4 MB, free: 19.76 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.2719, allocations: 341 kB / 498.8 MB, free: 19.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.2719, allocations: 14.25 kB / 498.8 MB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.272, allocations: 7.219 kB / 498.8 MB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.2722, allocations: 157.6 kB / 498.9 MB, free: 19.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2722, allocations: 0 / 498.9 MB, free: 19.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2723, allocations: 5.312 kB / 498.9 MB, free: 19.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2723, allocations: 7.406 kB / 499 MB, free: 19.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.2724, allocations: 68.28 kB / 499 MB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005825/0.273, allocations: 499.2 kB / 499.5 MB, free: 18.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.2734, allocations: 135.1 kB / 499.6 MB, free: 18.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.2735, allocations: 49.12 kB / 499.7 MB, free: 18.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.2735, allocations: 2.344 kB / 499.7 MB, free: 18.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002303/0.2737, allocations: 139.5 kB / 499.8 MB, free: 18.65 MB / 366.1 MB Notification: Performance of pre-optimization done (n=18): time 2.414e-06/0.2737, allocations: 9.141 kB / 499.8 MB, free: 18.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005657/0.2743, allocations: 285.3 kB / 0.4884 GB, free: 18.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.2744, allocations: 110.1 kB / 0.4885 GB, free: 18.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/0.2748, allocations: 447.3 kB / 0.4889 GB, free: 18.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.2748, allocations: 32.61 kB / 0.489 GB, free: 18.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.735e-05/0.2749, allocations: 168.5 kB / 0.4891 GB, free: 17.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.2749, allocations: 47.67 kB / 0.4892 GB, free: 17.88 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/0.275, allocations: 47.84 kB / 0.4892 GB, free: 17.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.856e-05/0.275, allocations: 351.9 kB / 0.4895 GB, free: 17.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.2751, allocations: 47.55 kB / 0.4896 GB, free: 17.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.2753, allocations: 149 kB / 0.4897 GB, free: 17.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.2755, allocations: 197 kB / 0.4899 GB, free: 17.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2755, allocations: 1.031 kB / 0.4899 GB, free: 17.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003439/0.2759, allocations: 230.8 kB / 0.4901 GB, free: 17.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2759, allocations: 6.875 kB / 0.4901 GB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2759, allocations: 2.219 kB / 0.4901 GB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.2759, allocations: 3.469 kB / 0.4901 GB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.276, allocations: 30.52 kB / 0.4902 GB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.276, allocations: 3.844 kB / 0.4902 GB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.2762, allocations: 24.38 kB / 0.4902 GB, free: 17.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.2762, allocations: 16.69 kB / 0.4902 GB, free: 17.01 MB / 366.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.0001767/0.2763, allocations: 179.5 kB / 0.4904 GB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.555e-05/0.2764, allocations: 37.98 kB / 0.4904 GB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.359e-05/0.2765, allocations: 36.34 kB / 0.4905 GB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2765, allocations: 2.219 kB / 0.4905 GB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2765, allocations: 0 / 0.4905 GB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2765, allocations: 1.094 kB / 0.4905 GB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.2767, allocations: 307.5 kB / 0.4908 GB, free: 16.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2767, allocations: 4 kB / 0.4908 GB, free: 16.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.4e-05/0.2767, allocations: 15.81 kB / 0.4908 GB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2767, allocations: 7.922 kB / 0.4908 GB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2767, allocations: 3.406 kB / 0.4908 GB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2767, allocations: 1.031 kB / 0.4908 GB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2767, allocations: 0 / 0.4908 GB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.2771, allocations: 263.6 kB / 0.491 GB, free: 16.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.2772, allocations: 109.8 kB / 0.4911 GB, free: 16.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.2772, allocations: 7.281 kB / 0.4912 GB, free: 16.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.722e-05/0.2773, allocations: 9.422 kB / 0.4912 GB, free: 16.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.2774, allocations: 13.52 kB / 0.4912 GB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.2774, allocations: 6.531 kB / 0.4912 GB, free: 16.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002866/0.2777, allocations: 327 kB / 0.4915 GB, free: 16.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2777, allocations: 0 / 0.4915 GB, free: 16.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.278, allocations: 72.81 kB / 0.4916 GB, free: 15.99 MB / 366.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.001899/0.2799, allocations: 1.144 MB / 0.4927 GB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003144/0.2802, allocations: 150.4 kB / 0.4928 GB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2802, allocations: 4.188 kB / 0.4928 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.2804, allocations: 69 kB / 0.4929 GB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.2808, allocations: 78.09 kB / 0.493 GB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.284, allocations: 3.057 MB / 0.496 GB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.2842, allocations: 0.7826 MB / 0.4967 GB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001742/0.2844, allocations: 49.33 kB / 0.4968 GB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.2845, allocations: 98.58 kB / 0.4969 GB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2845, allocations: 0 / 0.4969 GB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03255/0.317, allocations: 7.806 MB / 0.5045 GB, free: 8.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.399/8.716, allocations: 7.375 kB / 0.5045 GB, free: 8.047 MB / 366.1 MB " [Timeout remaining time 651] (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 --stepSize=0.02 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.25957761798054] Failed to read output from testmodel.py, exit status != 0: 8.838181343395263 8.848776214 8.575500392 Calling exit ...