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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00172/0.00172, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08081/0.08081, allocations: 10.65 MB / 23.91 MB, free: 1.379 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.844/1.844, allocations: 205.2 MB / 232.1 MB, free: 12.82 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000886/0.0008858, allocations: 102 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.963e-05/3.969e-05, allocations: 0 / 340.6 MB, free: 3.523 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3447, allocations: 49.99 MB / 390.6 MB, free: 35.72 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1182/0.463, allocations: 81.29 MB / 471.9 MB, free: 2.316 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.4633, allocations: 83.94 kB / 471.9 MB, free: 2.234 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02731/0.4906, allocations: 9.332 MB / 481.3 MB, free: 8.902 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4907, allocations: 3.938 kB / 481.3 MB, free: 8.898 MB / 362.8 MB Notification: Performance of Transformations before backend: time 2.731e-05/0.4907, allocations: 4 kB / 481.3 MB, free: 8.895 MB / 362.8 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.0008816/0.4916, allocations: 0.5799 MB / 481.9 MB, free: 8.254 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.4917, allocations: 12.03 kB / 481.9 MB, free: 8.242 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.4918, allocations: 46.55 kB / 481.9 MB, free: 8.188 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.323e-05/0.4919, allocations: 39.48 kB / 482 MB, free: 8.148 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006336/0.4925, allocations: 340.1 kB / 482.3 MB, free: 7.773 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.4925, allocations: 8.188 kB / 482.3 MB, free: 7.766 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.4926, allocations: 12 kB / 482.3 MB, free: 7.754 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002978/0.4929, allocations: 155.9 kB / 482.5 MB, free: 7.59 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.4929, allocations: 4 kB / 482.5 MB, free: 7.586 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.4929, allocations: 4 kB / 482.5 MB, free: 7.582 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.4929, allocations: 0 / 482.5 MB, free: 7.582 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.4931, allocations: 68.36 kB / 482.5 MB, free: 7.516 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008517/0.4939, allocations: 0.5124 MB / 483 MB, free: 6.953 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003554/0.4943, allocations: 143.9 kB / 483.2 MB, free: 6.805 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.4944, allocations: 56.81 kB / 483.2 MB, free: 6.746 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.4945, allocations: 8 kB / 483.3 MB, free: 6.738 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.4947, allocations: 131.6 kB / 483.4 MB, free: 6.598 MB / 362.8 MB Notification: Performance of pre-optimization done (n=18): time 1.703e-06/0.4947, allocations: 3.938 kB / 483.4 MB, free: 6.594 MB / 362.8 MB Notification: Performance of matching and sorting (n=18): time 0.0004644/0.4952, allocations: 230.3 kB / 483.6 MB, free: 6.363 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.739e-05/0.4953, allocations: 110.8 kB / 483.7 MB, free: 6.23 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005315/0.4958, allocations: 403.5 kB / 484.1 MB, free: 5.836 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.4959, allocations: 29.7 kB / 484.1 MB, free: 5.801 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.496, allocations: 160.5 kB / 484.3 MB, free: 5.637 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 6.651e-05/0.4961, allocations: 51.48 kB / 484.3 MB, free: 5.586 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.4961, allocations: 8 kB / 484.4 MB, free: 5.578 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.4963, allocations: 346.8 kB / 484.7 MB, free: 5.23 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.016e-05/0.4964, allocations: 40.23 kB / 484.7 MB, free: 5.188 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.4966, allocations: 153.4 kB / 484.9 MB, free: 4.996 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001234/0.4968, allocations: 59.91 kB / 484.9 MB, free: 4.938 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.4968, allocations: 0 / 484.9 MB, free: 4.938 MB / 362.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003714/0.4972, allocations: 229.2 kB / 485.2 MB, free: 4.707 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.4972, allocations: 8.031 kB / 485.2 MB, free: 4.699 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.4972, allocations: 4.125 kB / 485.2 MB, free: 4.695 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.852e-05/0.4973, allocations: 8 kB / 485.2 MB, free: 4.688 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.4974, allocations: 35.86 kB / 485.2 MB, free: 4.652 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.4974, allocations: 7.938 kB / 485.2 MB, free: 4.645 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.4976, allocations: 23.83 kB / 485.3 MB, free: 4.621 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.4976, allocations: 8 kB / 485.3 MB, free: 4.613 MB / 362.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.tr:DISCRETE(fixed = false ) "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,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001795/0.4978, allocations: 140.3 kB / 485.4 MB, free: 4.473 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.307e-05/0.4978, allocations: 35.58 kB / 485.4 MB, free: 4.438 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004577/0.4983, allocations: 244.7 kB / 485.7 MB, free: 4.188 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.4983, allocations: 3.953 kB / 485.7 MB, free: 4.184 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4983, allocations: 0 / 485.7 MB, free: 4.184 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4983, allocations: 0 / 485.7 MB, free: 4.184 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003501/0.4987, allocations: 329.3 kB / 486 MB, free: 3.812 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4987, allocations: 4 kB / 486 MB, free: 3.809 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.816e-05/0.4988, allocations: 11.94 kB / 486 MB, free: 3.797 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.4988, allocations: 4 kB / 486 MB, free: 3.793 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.4988, allocations: 3.984 kB / 486 MB, free: 3.789 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.4988, allocations: 4 kB / 486 MB, free: 3.785 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4988, allocations: 3.953 kB / 486 MB, free: 3.781 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.4992, allocations: 262.7 kB / 486.3 MB, free: 3.508 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.4994, allocations: 132.6 kB / 486.4 MB, free: 3.359 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.4994, allocations: 4 kB / 486.4 MB, free: 3.355 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.4996, allocations: 15.98 kB / 486.4 MB, free: 3.34 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.4996, allocations: 15.98 kB / 486.4 MB, free: 3.324 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.4997, allocations: 15.94 kB / 486.5 MB, free: 3.309 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003893/0.5001, allocations: 310.1 kB / 486.8 MB, free: 3.004 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5001, allocations: 3.938 kB / 486.8 MB, free: 3 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003842/0.5005, allocations: 84.05 kB / 486.9 MB, free: 2.918 MB / 362.8 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001634/0.5021, allocations: 1.121 MB / 488 MB, free: 1.848 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003659/0.5025, allocations: 159.8 kB / 488.1 MB, free: 1.691 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.5025, allocations: 0.5 kB / 488.1 MB, free: 1.691 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001639/0.5027, allocations: 83.98 kB / 488.2 MB, free: 1.609 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.5031, allocations: 68 kB / 488.3 MB, free: 1.543 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.5042, allocations: 496.7 kB / 488.8 MB, free: 1.02 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.5048, allocations: 0.7872 MB / 489.6 MB, free: 208 kB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.5049, allocations: 62.86 kB / 489.6 MB, free: 144 kB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.5051, allocations: 91.41 kB / 489.7 MB, free: 56 kB / 362.8 MB Notification: Performance of SimCode: time 5.91e-07/0.5051, allocations: 0 / 489.7 MB, free: 56 kB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02238/0.5275, allocations: 7.201 MB / 496.9 MB, free: 8.891 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.5278, allocations: 216.6 kB / 497.1 MB, free: 8.672 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.715, allocations: 3.953 kB / 497.1 MB, free: 8.668 MB / 378.8 MB (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/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --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)