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.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.0007505/0.0007505, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.00081/0.00081, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8712/0.8712, allocations: 177.2 MB / 202.8 MB, free: 5.738 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.03564/0.03564, allocations: 8.611 MB / 267.8 MB, free: 5.117 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_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 1.613e-06/1.613e-06, allocations: 0 / 395.1 MB, free: 2.668 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.117e-05, allocations: 2.281 kB / 395.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002582/0.002603, allocations: 1.963 MB / 397 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.004217, allocations: 1.344 MB / 398.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.00435, allocations: 3.938 kB / 398.4 MB, free: 15.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000687/0.005037, allocations: 315 kB / 398.7 MB, free: 15.03 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004326/0.005469, allocations: 263 kB / 398.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004947/0.005964, allocations: 266.7 kB / 399.2 MB, free: 14.51 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.006333, allocations: 379 kB / 399.6 MB, free: 14.14 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.006457, allocations: 36.78 kB / 399.6 MB, free: 14.11 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.006678, allocations: 203.4 kB / 399.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.006838, allocations: 143.6 kB / 400 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.006868, allocations: 20 kB / 400 MB, free: 13.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000192/0.00706, allocations: 123.8 kB / 400.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.859e-05/0.007148, allocations: 91.67 kB / 400.2 MB, free: 13.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.621e-05/0.007225, allocations: 75.77 kB / 400.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004096/0.007634, allocations: 402.7 kB / 400.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.007638, allocations: 0 / 400.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.00764, allocations: 0 / 400.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.007647, allocations: 0 / 400.7 MB, free: 13.07 MB / 378.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.001062/0.008708, allocations: 0.6168 MB / 401.3 MB, free: 12.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.008745, allocations: 8.031 kB / 401.3 MB, free: 12.4 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.008781, allocations: 46.69 kB / 401.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.404e-05/0.008845, allocations: 44.69 kB / 401.4 MB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003284/0.009173, allocations: 280 kB / 401.6 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.009195, allocations: 12.56 kB / 401.7 MB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.009211, allocations: 8.359 kB / 401.7 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.009427, allocations: 137.5 kB / 401.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.009434, allocations: 0 / 401.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.009446, allocations: 4 kB / 401.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.009453, allocations: 4 kB / 401.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.009572, allocations: 75.81 kB / 401.9 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005306/0.0101, allocations: 439.5 kB / 402.3 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.0104, allocations: 146.6 kB / 402.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.948e-05/0.01048, allocations: 52.92 kB / 402.5 MB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.01049, allocations: 8 kB / 402.5 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.01069, allocations: 145.4 kB / 402.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.0107, allocations: 0 / 402.6 MB, free: 10.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004308/0.01113, allocations: 293.3 kB / 402.9 MB, free: 10.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.01116, allocations: 63.38 kB / 403 MB, free: 10.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/0.01153, allocations: 465.6 kB / 403.5 MB, free: 10.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.01155, allocations: 33.7 kB / 403.5 MB, free: 10.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.827e-05/0.01165, allocations: 172.4 kB / 403.7 MB, free: 9.867 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.01168, allocations: 43.69 kB / 403.7 MB, free: 9.824 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.01174, allocations: 49.64 kB / 403.7 MB, free: 9.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.01183, allocations: 350.8 kB / 404.1 MB, free: 9.418 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.138e-05/0.01191, allocations: 52.14 kB / 404.1 MB, free: 9.367 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.01205, allocations: 186.1 kB / 404.3 MB, free: 9.137 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.01228, allocations: 200.4 kB / 404.5 MB, free: 8.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.01229, allocations: 3.938 kB / 404.5 MB, free: 8.906 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002684/0.01255, allocations: 241.3 kB / 404.8 MB, free: 8.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.01257, allocations: 10.66 kB / 404.8 MB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/0.01258, allocations: 0 / 404.8 MB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.01259, allocations: 4 kB / 404.8 MB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.001e-05/0.01266, allocations: 35.98 kB / 404.8 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.01267, allocations: 8 kB / 404.8 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/0.01275, allocations: 23.88 kB / 404.8 MB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.01276, allocations: 12 kB / 404.8 MB, free: 8.574 MB / 378.7 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.0001822/0.01294, allocations: 200.3 kB / 405 MB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.153e-05/0.01297, allocations: 35.77 kB / 405.1 MB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003408/0.01331, allocations: 259.3 kB / 405.3 MB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.01332, allocations: 4 kB / 405.3 MB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.01332, allocations: 0 / 405.3 MB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.01333, allocations: 3.984 kB / 405.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.01352, allocations: 256.5 kB / 405.6 MB, free: 7.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.01352, allocations: 4 kB / 405.6 MB, free: 7.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.099e-05/0.01355, allocations: 11.94 kB / 405.6 MB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.01356, allocations: 4 kB / 405.6 MB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.01357, allocations: 7.984 kB / 405.6 MB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.01357, allocations: 0 / 405.6 MB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01357, allocations: 4 kB / 405.6 MB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.01385, allocations: 280.7 kB / 405.9 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.839e-05/0.01389, allocations: 39.75 kB / 405.9 MB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.01392, allocations: 0 / 405.9 MB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.017e-05/0.01397, allocations: 15.98 kB / 405.9 MB, free: 7.398 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.01401, allocations: 15.98 kB / 406 MB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.01403, allocations: 19.92 kB / 406 MB, free: 7.363 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002564/0.01429, allocations: 339.1 kB / 406.3 MB, free: 7.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.01429, allocations: 0 / 406.3 MB, free: 7.035 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002696/0.01456, allocations: 67.86 kB / 406.4 MB, free: 6.969 MB / 378.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: 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,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 (19): * Single equations (assignments): 11 * 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.001202/0.01576, allocations: 1.203 MB / 407.6 MB, free: 5.922 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.01603, allocations: 158.2 kB / 407.7 MB, free: 5.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.01603, allocations: 4 kB / 407.7 MB, free: 5.766 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.01613, allocations: 71.92 kB / 407.8 MB, free: 5.695 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.01642, allocations: 76.14 kB / 407.9 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003092/0.01951, allocations: 3.156 MB / 411 MB, free: 2.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.01964, allocations: 178.1 kB / 411.2 MB, free: 2.133 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.01977, allocations: 54.92 kB / 411.3 MB, free: 2.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.01989, allocations: 96.47 kB / 411.4 MB, free: 1.984 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01989, allocations: 0 / 411.4 MB, free: 1.984 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.0448, allocations: 8.898 MB / 420.3 MB, free: 9.172 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.068/7.113, allocations: 6.75 kB / 420.3 MB, free: 9.168 MB / 394.7 MB " [Timeout remaining time 653] (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: 8.882013984024525] Failed to read output from testmodel.py, exit status != 0: 7.212706889025867 7.22266188 7.212262149 Calling exit ...