Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_dev_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.001199/0.001199, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 192.2 kB / 16.13 MB, free: 6.656 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.2/1.2, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8289/0.8289, allocations: 135.1 MB / 425.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 64.02 kB / 0.5048 GB, free: 5.695 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1363, allocations: 80.93 MB / 0.5838 GB, free: 4.934 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002918/0.1392, allocations: 1.476 MB / 0.5852 GB, free: 3.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007174/0.14, allocations: 427 kB / 0.5857 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.256e-05/0.14, allocations: 0 / 0.5857 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.046e-05/0.1401, allocations: 0 / 0.5857 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.16e-05/0.1401, allocations: 15.91 kB / 0.5857 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.1403, allocations: 12 kB / 0.5857 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.993e-05/0.1404, allocations: 51.78 kB / 0.5857 GB, free: 2.941 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.937e-05/0.1405, allocations: 8 kB / 0.5857 GB, free: 2.934 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.122e-05/0.1405, allocations: 27.8 kB / 0.5858 GB, free: 2.906 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.907e-05/0.1406, allocations: 19.91 kB / 0.5858 GB, free: 2.887 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.792e-05/0.1406, allocations: 4 kB / 0.5858 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-06/0.1406, allocations: 0 / 0.5858 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.185e-05/0.1407, allocations: 4 kB / 0.5858 GB, free: 2.879 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.678e-05/0.1407, allocations: 23.86 kB / 0.5858 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.893e-05/0.1408, allocations: 40.16 kB / 0.5859 GB, free: 2.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1408, allocations: 0 / 0.5859 GB, free: 2.816 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1408, allocations: 0 / 0.5859 GB, free: 2.816 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1408, allocations: 0 / 0.5859 GB, free: 2.816 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.0005564/0.1414, allocations: 397 kB / 0.5862 GB, free: 2.375 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1414, allocations: 8.031 kB / 0.5862 GB, free: 2.367 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.634e-05/0.1415, allocations: 42.69 kB / 0.5863 GB, free: 2.316 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.151e-05/0.1415, allocations: 4.922 kB / 0.5863 GB, free: 2.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.1417, allocations: 176.2 kB / 0.5865 GB, free: 2.102 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.1417, allocations: 4.375 kB / 0.5865 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.1417, allocations: 384 / 0.5865 GB, free: 2.098 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.1418, allocations: 61.78 kB / 0.5865 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.1418, allocations: 0 / 0.5865 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.1418, allocations: 0 / 0.5865 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.1419, allocations: 4 kB / 0.5865 GB, free: 2.027 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.357e-05/0.1419, allocations: 15.94 kB / 0.5865 GB, free: 2.012 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003778/0.1423, allocations: 276.8 kB / 0.5868 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.1e-05/0.1424, allocations: 42.56 kB / 0.5868 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.737e-05/0.1424, allocations: 20.97 kB / 0.5869 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.1425, allocations: 0 / 0.5869 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002004/0.1427, allocations: 105.1 kB / 0.587 GB, free: 1.496 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.1427, allocations: 4 kB / 0.587 GB, free: 1.492 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002641/0.1429, allocations: 139.3 kB / 0.5871 GB, free: 1.344 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.143, allocations: 85.05 kB / 0.5872 GB, free: 1.242 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.663e-05/0.1431, allocations: 105.8 kB / 0.5873 GB, free: 1.129 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1431, allocations: 29.98 kB / 0.5873 GB, free: 1.094 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/0.1432, allocations: 88.12 kB / 0.5874 GB, free: 1.004 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.1432, allocations: 19.72 kB / 0.5874 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.241e-05/0.1432, allocations: 33.64 kB / 0.5874 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1434, allocations: 318.8 kB / 0.5877 GB, free: 0.625 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.329e-05/0.1434, allocations: 19.98 kB / 0.5878 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.32e-05/0.1435, allocations: 30.58 kB / 0.5878 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.738e-05/0.1436, allocations: 117.9 kB / 0.5879 GB, free: 440 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1436, allocations: 0 / 0.5879 GB, free: 440 kB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001627/0.1437, allocations: 127.3 kB / 0.588 GB, free: 300 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.1438, allocations: 33.69 kB / 0.5881 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1438, allocations: 0 / 0.5881 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1438, allocations: 4 kB / 0.5881 GB, free: 256 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.088e-05/0.1439, allocations: 4 kB / 0.5881 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1439, allocations: 0 / 0.5881 GB, free: 252 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.397e-05/0.1439, allocations: 15.83 kB / 0.5881 GB, free: 236 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.1439, allocations: 8 kB / 0.5881 GB, free: 228 kB / 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.922e-05/0.144, allocations: 155.5 kB / 0.5882 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.1441, allocations: 4 kB / 0.5882 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.525e-05/0.1441, allocations: 4.375 kB / 0.5882 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1441, allocations: 0 / 0.5882 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.1441, allocations: 0 / 0.5882 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1441, allocations: 3.984 kB / 0.5882 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1445, allocations: 404.1 kB / 0.5886 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1445, allocations: 7.938 kB / 0.5886 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.226e-05/0.1445, allocations: 8 kB / 0.5886 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1445, allocations: 4 kB / 0.5887 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.1446, allocations: 0 / 0.5887 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1446, allocations: 480 / 0.5887 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1446, allocations: 7.938 kB / 0.5887 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.1448, allocations: 221.2 kB / 0.5889 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.1448, allocations: 89.09 kB / 0.589 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.1449, allocations: 7.938 kB / 0.589 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.145, allocations: 12 kB / 0.589 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.145, allocations: 11.92 kB / 0.589 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.145, allocations: 0 / 0.589 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.487e-05/0.1451, allocations: 95.33 kB / 0.5891 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1451, allocations: 0 / 0.5891 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002276/0.1453, allocations: 16 kB / 0.5891 GB, free: 15.07 MB / 0.4981 GB 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.0004723/0.1458, allocations: 0.7749 MB / 0.5899 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000171/0.146, allocations: 119.3 kB / 0.59 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.146, allocations: 0 / 0.59 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.02e-05/0.1461, allocations: 87.39 kB / 0.59 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.1464, allocations: 11.94 kB / 0.5901 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.1476, allocations: 1.43 MB / 0.5915 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.1479, allocations: 0.6809 MB / 0.5921 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.783e-05/0.148, allocations: 7.984 kB / 0.5921 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/0.148, allocations: 15.44 kB / 0.5921 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.148, allocations: 4 kB / 0.5921 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2423/0.3903, allocations: 1.65 MB / 0.5938 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.3905, allocations: 194.9 kB / 0.5939 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.156, allocations: 0 / 0.5939 GB, free: 9.965 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Discrete_Examples_BooleanDelay.fmu > IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)