Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay",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.001096/0.0011, allocations: 108 kB / 15.61 MB, free: 152 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.001065/0.001065, allocations: 194.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.731/0.731, allocations: 132.2 MB / 422.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 67.45 kB / 0.5019 GB, free: 8.641 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1356, allocations: 80.2 MB / 0.5802 GB, free: 8.668 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002561/0.1382, allocations: 1.421 MB / 0.5816 GB, free: 7.23 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007112/0.139, allocations: 436.7 kB / 0.582 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.063e-05/0.139, allocations: 0 / 0.582 GB, free: 6.801 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.806e-05/0.139, allocations: 3.938 kB / 0.582 GB, free: 6.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.081e-05/0.1391, allocations: 11.88 kB / 0.582 GB, free: 6.785 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.1393, allocations: 23.97 kB / 0.582 GB, free: 6.762 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001128/0.1394, allocations: 55.78 kB / 0.5821 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.195e-05/0.1395, allocations: 4 kB / 0.5821 GB, free: 6.703 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.336e-05/0.1396, allocations: 27.86 kB / 0.5821 GB, free: 6.676 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.964e-05/0.1396, allocations: 15.92 kB / 0.5821 GB, free: 6.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.1397, allocations: 4 kB / 0.5821 GB, free: 6.656 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.251e-05/0.1397, allocations: 4 kB / 0.5821 GB, free: 6.652 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.437e-05/0.1397, allocations: 11.98 kB / 0.5821 GB, free: 6.641 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.94e-05/0.1398, allocations: 19.86 kB / 0.5822 GB, free: 6.621 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.1399, allocations: 40.17 kB / 0.5822 GB, free: 6.582 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1399, allocations: 0 / 0.5822 GB, free: 6.582 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1399, allocations: 0 / 0.5822 GB, free: 6.582 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.1399, allocations: 0 / 0.5822 GB, free: 6.582 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006189/0.1405, allocations: 397 kB / 0.5826 GB, free: 6.141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1406, allocations: 8.031 kB / 0.5826 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.476e-05/0.1406, allocations: 34.75 kB / 0.5826 GB, free: 6.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.349e-05/0.1407, allocations: 8.938 kB / 0.5826 GB, free: 6.082 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.1408, allocations: 184.1 kB / 0.5828 GB, free: 5.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.1408, allocations: 4.375 kB / 0.5828 GB, free: 5.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.969e-06/0.1408, allocations: 384 / 0.5828 GB, free: 5.859 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.141, allocations: 57.8 kB / 0.5829 GB, free: 5.797 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.141, allocations: 0 / 0.5829 GB, free: 5.797 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.141, allocations: 7.984 kB / 0.5829 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.141, allocations: 0 / 0.5829 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.832e-05/0.1411, allocations: 15.98 kB / 0.5829 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003707/0.1414, allocations: 280.7 kB / 0.5832 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.928e-05/0.1415, allocations: 42.56 kB / 0.5832 GB, free: 5.398 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.534e-05/0.1416, allocations: 20.97 kB / 0.5832 GB, free: 5.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.1416, allocations: 0 / 0.5832 GB, free: 5.375 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.1418, allocations: 97.09 kB / 0.5833 GB, free: 5.262 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.1418, allocations: 7.938 kB / 0.5833 GB, free: 5.254 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002745/0.1421, allocations: 147.3 kB / 0.5835 GB, free: 5.098 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1421, allocations: 81.11 kB / 0.5835 GB, free: 5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.324e-05/0.1422, allocations: 113.8 kB / 0.5836 GB, free: 4.879 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.1422, allocations: 25.7 kB / 0.5837 GB, free: 4.848 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.145e-05/0.1423, allocations: 92.12 kB / 0.5838 GB, free: 4.754 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.1423, allocations: 15.72 kB / 0.5838 GB, free: 4.738 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.1424, allocations: 25.72 kB / 0.5838 GB, free: 4.707 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.22e-05/0.1425, allocations: 322.8 kB / 0.5841 GB, free: 4.383 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.255e-05/0.1425, allocations: 16 kB / 0.5841 GB, free: 4.367 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.084e-05/0.1425, allocations: 34.56 kB / 0.5842 GB, free: 4.324 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.635e-05/0.1426, allocations: 113.9 kB / 0.5843 GB, free: 4.191 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1426, allocations: 0 / 0.5843 GB, free: 4.191 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001459/0.1428, allocations: 131.3 kB / 0.5844 GB, free: 4.051 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.1428, allocations: 33.69 kB / 0.5844 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1429, allocations: 4 kB / 0.5844 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.1429, allocations: 0 / 0.5844 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.993e-05/0.1429, allocations: 4 kB / 0.5844 GB, free: 4.004 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.1429, allocations: 0 / 0.5844 GB, free: 4.004 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.443e-05/0.143, allocations: 11.84 kB / 0.5844 GB, free: 3.992 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.143, allocations: 8 kB / 0.5844 GB, free: 3.984 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 9.49e-05/0.1431, allocations: 153.1 kB / 0.5846 GB, free: 3.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.1431, allocations: 11.94 kB / 0.5846 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.774e-05/0.1432, allocations: 8.375 kB / 0.5846 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1432, allocations: 0 / 0.5846 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1432, allocations: 4.062 kB / 0.5846 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1432, allocations: 7.984 kB / 0.5846 GB, free: 3.789 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003615/0.1436, allocations: 396.1 kB / 0.585 GB, free: 3.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1436, allocations: 7.938 kB / 0.585 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.625e-06/0.1436, allocations: 384 / 0.585 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1436, allocations: 0 / 0.585 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.1436, allocations: 4 kB / 0.585 GB, free: 3.328 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1436, allocations: 4 kB / 0.585 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1436, allocations: 7.875 kB / 0.585 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.1438, allocations: 229.2 kB / 0.5852 GB, free: 3.07 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.411e-05/0.1439, allocations: 81.02 kB / 0.5853 GB, free: 2.973 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.345e-05/0.1439, allocations: 11.98 kB / 0.5853 GB, free: 2.961 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.144, allocations: 4 kB / 0.5853 GB, free: 2.957 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.144, allocations: 15.92 kB / 0.5853 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1441, allocations: 4 kB / 0.5854 GB, free: 2.938 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.366e-05/0.1441, allocations: 87.27 kB / 0.5854 GB, free: 2.852 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1441, allocations: 0 / 0.5854 GB, free: 2.852 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.1444, allocations: 20 kB / 0.5855 GB, free: 2.832 MB / 494.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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0004312/0.1448, allocations: 0.7571 MB / 0.5862 GB, free: 2.043 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.145, allocations: 116.2 kB / 0.5863 GB, free: 1.918 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.145, allocations: 0 / 0.5863 GB, free: 1.918 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.158e-05/0.1451, allocations: 91.39 kB / 0.5864 GB, free: 1.816 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.1454, allocations: 17.81 kB / 0.5864 GB, free: 1.801 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.1466, allocations: 1.434 MB / 0.5878 GB, free: 268 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.1468, allocations: 0.6853 MB / 0.5885 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.776e-05/0.1469, allocations: 4 kB / 0.5885 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.204e-05/0.1469, allocations: 19.42 kB / 0.5885 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1469, allocations: 0 / 0.5885 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.591/1.738, allocations: 1.84 MB / 0.5903 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/13.29, allocations: 20.17 kB / 0.5903 GB, free: 13.76 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)