Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.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.0009687/0.0009687, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008865/0.0008865, allocations: 165.9 kB / 22.45 MB, free: 2.105 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.8549/0.8549, allocations: 177.1 MB / 202.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.683/1.683, allocations: 377.9 MB / 0.6221 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_12_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_12_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.235e-05/1.379e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001719/0.001733, allocations: 1.451 MB / 0.9823 GB, free: 1.152 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006173/0.00235, allocations: 434.9 kB / 0.9827 GB, free: 0.7227 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.167e-05/0.002391, allocations: 4 kB / 0.9827 GB, free: 0.7188 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.95e-05/0.002421, allocations: 3.938 kB / 0.9827 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.002521, allocations: 19.84 kB / 0.9828 GB, free: 0.6953 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001717/0.002693, allocations: 23.86 kB / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.002811, allocations: 47.8 kB / 0.9828 GB, free: 0.625 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.378e-05/0.002905, allocations: 7.984 kB / 0.9828 GB, free: 0.6172 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.499e-05/0.00298, allocations: 31.91 kB / 0.9829 GB, free: 0.5859 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 6.334e-05/0.003043, allocations: 11.98 kB / 0.9829 GB, free: 0.5742 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.003062, allocations: 4 kB / 0.9829 GB, free: 0.5703 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 1.068e-05/0.003073, allocations: 8 kB / 0.9829 GB, free: 0.5625 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.656e-05/0.0031, allocations: 11.92 kB / 0.9829 GB, free: 0.5508 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.546e-05/0.003135, allocations: 8 kB / 0.9829 GB, free: 0.543 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.003258, allocations: 55.8 kB / 0.983 GB, free: 500 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.003259, allocations: 0 / 0.983 GB, free: 500 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.183e-06/0.003261, allocations: 0 / 0.983 GB, free: 500 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.003264, allocations: 0 / 0.983 GB, free: 500 kB / 0.9323 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.0004296/0.003694, allocations: 312 kB / 0.9833 GB, free: 152 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.00373, allocations: 8.031 kB / 0.9833 GB, free: 144 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.51e-05/0.003755, allocations: 38.75 kB / 0.9833 GB, free: 96 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.003783, allocations: 8.891 kB / 0.9833 GB, free: 88 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.752e-05/0.003871, allocations: 121.7 kB / 0.9834 GB, free: 15.94 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-06/0.00388, allocations: 384 / 0.9834 GB, free: 15.94 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.003888, allocations: 4.375 kB / 0.9834 GB, free: 15.94 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.003996, allocations: 79.94 kB / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.004004, allocations: 192 / 0.9835 GB, free: 15.85 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.004016, allocations: 8.125 kB / 0.9835 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.004021, allocations: 0 / 0.9835 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.534e-05/0.004076, allocations: 45.69 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003239/0.0044, allocations: 243.9 kB / 0.9838 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.444e-05/0.004474, allocations: 68.27 kB / 0.9839 GB, free: 15.43 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.331e-05/0.004508, allocations: 50.56 kB / 0.9839 GB, free: 15.37 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.004523, allocations: 0 / 0.9839 GB, free: 15.37 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/0.004665, allocations: 134.7 kB / 0.984 GB, free: 15.21 MB / 0.948 GB Notification: Performance of pre-optimization done (n=9): time 8.72e-07/0.004666, allocations: 0 / 0.984 GB, free: 15.21 MB / 0.948 GB Notification: Performance of matching and sorting (n=9): time 0.0002292/0.004895, allocations: 198.7 kB / 0.9842 GB, free: 14.99 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.00494, allocations: 89.16 kB / 0.9843 GB, free: 14.89 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.842e-05/0.004998, allocations: 113.9 kB / 0.9844 GB, free: 14.77 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.005008, allocations: 29.7 kB / 0.9844 GB, free: 14.73 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.005195, allocations: 92.08 kB / 0.9845 GB, free: 14.64 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.005213, allocations: 19.86 kB / 0.9846 GB, free: 14.62 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/0.005244, allocations: 25.7 kB / 0.9846 GB, free: 14.59 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.361e-05/0.005318, allocations: 318.8 kB / 0.9849 GB, free: 14.27 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.09e-05/0.005349, allocations: 41.69 kB / 0.9849 GB, free: 14.22 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.226e-05/0.005391, allocations: 68.27 kB / 0.985 GB, free: 14.14 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.308e-05/0.005464, allocations: 113.9 kB / 0.9851 GB, free: 14 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.005466, allocations: 0 / 0.9851 GB, free: 14 MB / 0.948 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001113/0.005578, allocations: 161 kB / 0.9852 GB, free: 13.83 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.005601, allocations: 29.7 kB / 0.9853 GB, free: 13.79 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.005607, allocations: 4.062 kB / 0.9853 GB, free: 13.79 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.005618, allocations: 4 kB / 0.9853 GB, free: 13.79 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.527e-05/0.005654, allocations: 7.984 kB / 0.9853 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.005659, allocations: 0 / 0.9853 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.021e-05/0.0057, allocations: 7.953 kB / 0.9853 GB, free: 13.77 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.005708, allocations: 8 kB / 0.9853 GB, free: 13.76 MB / 0.948 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 (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 7.253e-05/0.00578, allocations: 155.5 kB / 0.9855 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.756e-06/0.005789, allocations: 7.938 kB / 0.9855 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.005808, allocations: 8.469 kB / 0.9855 GB, free: 13.58 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.00581, allocations: 3.938 kB / 0.9855 GB, free: 13.57 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.005815, allocations: 4 kB / 0.9855 GB, free: 13.57 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.005819, allocations: 4.359 kB / 0.9855 GB, free: 13.57 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.006096, allocations: 400.8 kB / 0.9859 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.006097, allocations: 0 / 0.9859 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.687e-06/0.006101, allocations: 0 / 0.9859 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.006103, allocations: 4 kB / 0.9859 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.00611, allocations: 3.938 kB / 0.9859 GB, free: 13.11 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.006113, allocations: 3.984 kB / 0.9859 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.006114, allocations: 0 / 0.9859 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001368/0.006251, allocations: 270.8 kB / 0.9861 GB, free: 12.81 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.845e-06/0.006258, allocations: 3.953 kB / 0.9861 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.006272, allocations: 4 kB / 0.9861 GB, free: 12.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.605e-05/0.006328, allocations: 7.984 kB / 0.9861 GB, free: 12.79 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.006364, allocations: 11.98 kB / 0.9862 GB, free: 12.78 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.006376, allocations: 4 kB / 0.9862 GB, free: 12.78 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.961e-05/0.006406, allocations: 83.28 kB / 0.9862 GB, free: 12.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.006406, allocations: 0 / 0.9862 GB, free: 12.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00015/0.006556, allocations: 19.98 kB / 0.9863 GB, free: 12.68 MB / 0.948 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.0003317/0.006888, allocations: 0.8001 MB / 0.987 GB, free: 11.84 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001645/0.007052, allocations: 166.7 kB / 0.9872 GB, free: 11.65 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.007054, allocations: 0 / 0.9872 GB, free: 11.65 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 6.321e-05/0.007117, allocations: 109.1 kB / 0.9873 GB, free: 11.53 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.007332, allocations: 16.09 kB / 0.9873 GB, free: 11.51 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.008343, allocations: 1.58 MB / 0.9889 GB, free: 9.801 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.178e-05/0.008394, allocations: 79.45 kB / 0.9889 GB, free: 9.703 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 2.567e-05/0.00842, allocations: 4 kB / 0.9889 GB, free: 9.699 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.008466, allocations: 24.44 kB / 0.989 GB, free: 9.676 MB / 0.948 GB Notification: Performance of SimCode: time 7.02e-07/0.008467, allocations: 0 / 0.989 GB, free: 9.676 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.02515, allocations: 2.619 MB / 0.9915 GB, free: 7.215 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.917/6.942, allocations: 6.594 kB / 0.9915 GB, free: 7.215 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.831781088374555]