Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.751/0.751, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 180.3 kB / 187.3 MB, free: 11.87 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 221.3 MB / 441.4 MB, free: 4.598 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008137/0.0008135, allocations: 98.98 kB / 0.5124 GB, free: 24.12 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001692/0.001692, allocations: 272.6 kB / 0.5939 GB, free: 7.938 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.092e-05/3.095e-05, allocations: 7.984 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4026, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.5181, allocations: 109.1 MB / 0.8709 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.5184, allocations: 71.95 kB / 0.871 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003454/0.5219, allocations: 1.232 MB / 0.8722 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5219, allocations: 0 / 0.8722 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.5219, allocations: 4 kB / 0.8722 GB, free: 14.09 MB / 0.5417 GB 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.0004597/0.5224, allocations: 376.2 kB / 0.8726 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.5224, allocations: 8.031 kB / 0.8726 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.5225, allocations: 34.56 kB / 0.8726 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.502e-05/0.5225, allocations: 3.906 kB / 0.8726 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.5227, allocations: 178 kB / 0.8728 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.5227, allocations: 15.98 kB / 0.8728 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.5227, allocations: 0 / 0.8728 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.5228, allocations: 45.69 kB / 0.8728 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.5228, allocations: 0 / 0.8728 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.5229, allocations: 8 kB / 0.8728 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.5229, allocations: 0 / 0.8728 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.412e-05/0.5229, allocations: 12 kB / 0.8729 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.5233, allocations: 268.9 kB / 0.8731 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.79e-05/0.5234, allocations: 50.48 kB / 0.8732 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.611e-05/0.5235, allocations: 24.98 kB / 0.8732 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.5235, allocations: 0 / 0.8732 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.5237, allocations: 101 kB / 0.8733 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.5237, allocations: 0 / 0.8733 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0002234/0.5239, allocations: 119.4 kB / 0.8734 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.524, allocations: 85.11 kB / 0.8735 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.401e-05/0.5241, allocations: 104.9 kB / 0.8736 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.5241, allocations: 33.7 kB / 0.8736 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.5241, allocations: 80.14 kB / 0.8737 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.309e-05/0.5242, allocations: 19.8 kB / 0.8737 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/0.5242, allocations: 0 / 0.8737 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.5243, allocations: 332.7 kB / 0.874 GB, free: 12 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.994e-05/0.5243, allocations: 12 kB / 0.874 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.242e-05/0.5244, allocations: 42.52 kB / 0.8741 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.212e-05/0.5245, allocations: 45.69 kB / 0.8741 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.5245, allocations: 0 / 0.8741 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001477/0.5246, allocations: 127.2 kB / 0.8742 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/0.5247, allocations: 33.69 kB / 0.8743 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.5247, allocations: 0 / 0.8743 GB, free: 11.71 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.5247, allocations: 8.062 kB / 0.8743 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.079e-05/0.5247, allocations: 0 / 0.8743 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.5247, allocations: 6.578 kB / 0.8743 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.901e-05/0.5248, allocations: 15.92 kB / 0.8743 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.5248, allocations: 4 kB / 0.8743 GB, free: 11.68 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/0.5249, allocations: 146.6 kB / 0.8744 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.5249, allocations: 4 kB / 0.8744 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.525, allocations: 4.625 kB / 0.8745 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.525, allocations: 7.984 kB / 0.8745 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.525, allocations: 0 / 0.8745 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.525, allocations: 4 kB / 0.8745 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003859/0.5254, allocations: 396.2 kB / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.5254, allocations: 0 / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-06/0.5254, allocations: 0 / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.5254, allocations: 64 / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.5255, allocations: 8 kB / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5255, allocations: 0 / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5255, allocations: 0 / 0.8748 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.5257, allocations: 241 kB / 0.8751 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.462e-05/0.5257, allocations: 85 kB / 0.8752 GB, free: 10.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.5258, allocations: 4.094 kB / 0.8752 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.706e-05/0.5259, allocations: 11.94 kB / 0.8752 GB, free: 10.67 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.5259, allocations: 7.984 kB / 0.8752 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.526, allocations: 8 kB / 0.8752 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.678e-05/0.526, allocations: 87.27 kB / 0.8753 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/0.526, allocations: 3.938 kB / 0.8753 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002356/0.5263, allocations: 20 kB / 0.8753 GB, free: 10.55 MB / 0.5417 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) * 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 (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.0004809/0.5267, allocations: 0.757 MB / 0.876 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001706/0.5269, allocations: 111.3 kB / 0.8761 GB, free: 9.633 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5269, allocations: 4 kB / 0.8761 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.716e-05/0.527, allocations: 87.39 kB / 0.8762 GB, free: 9.531 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.5272, allocations: 12 kB / 0.8762 GB, free: 9.52 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003964/0.5276, allocations: 142.6 kB / 0.8764 GB, free: 9.344 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.5279, allocations: 0.6887 MB / 0.877 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.449e-05/0.5279, allocations: 11.89 kB / 0.8771 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.528, allocations: 15.44 kB / 0.8771 GB, free: 8.602 MB / 0.5417 GB Notification: Performance of SimCode: time 4.81e-07/0.528, allocations: 0 / 0.8771 GB, free: 8.602 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01233/0.5403, allocations: 1.617 MB / 0.8787 GB, free: 7.137 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.5405, allocations: 159.2 kB / 0.8788 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.497/2.037, allocations: 0 / 0.8788 GB, free: 6.914 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)