Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) 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/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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.748/1.748, allocations: 288.2 MB / 303.2 MB, free: 8.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 179.3 kB / 371.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.852/1.852, allocations: 205.4 MB / 0.6305 GB, free: 9.996 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008179/0.0008182, allocations: 90.84 kB / 0.7439 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003941, allocations: 17.12 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2184, allocations: 115.3 MB / 0.9795 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7586/0.9771, allocations: 138.6 MB / 1.115 GB, free: 16.32 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.9774, allocations: 72.36 kB / 1.115 GB, free: 16.32 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007286/0.9847, allocations: 2.491 MB / 1.117 GB, free: 31.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.394e-06/0.9847, allocations: 0 / 1.117 GB, free: 31.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.802e-06/0.9847, allocations: 0 / 1.117 GB, free: 31.9 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006008/0.9853, allocations: 447.1 kB / 1.118 GB, free: 31.49 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.9854, allocations: 15.64 kB / 1.118 GB, free: 31.48 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.238e-05/0.9854, allocations: 40.72 kB / 1.118 GB, free: 31.44 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.9855, allocations: 19.53 kB / 1.118 GB, free: 31.43 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.9856, allocations: 174.7 kB / 1.118 GB, free: 31.22 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.9856, allocations: 3.875 kB / 1.118 GB, free: 31.22 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.9856, allocations: 13.95 kB / 1.118 GB, free: 31.22 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.9859, allocations: 107.5 kB / 1.118 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.986, allocations: 0 / 1.118 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.986, allocations: 6.609 kB / 1.118 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.986, allocations: 0 / 1.118 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.9863, allocations: 110.2 kB / 1.118 GB, free: 31.18 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000568/0.9869, allocations: 388.1 kB / 1.119 GB, free: 30.91 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002473/0.9872, allocations: 106.9 kB / 1.119 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.9872, allocations: 4 kB / 1.119 GB, free: 30.88 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/0.9875, allocations: 127.1 kB / 1.119 GB, free: 30.82 MB / 0.698 GB Notification: Performance of pre-optimization done (n=12): time 1.453e-06/0.9875, allocations: 0 / 1.119 GB, free: 30.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=12): time 0.0006419/0.9882, allocations: 246.5 kB / 1.119 GB, free: 30.77 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.9882, allocations: 55.22 kB / 1.119 GB, free: 30.71 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.948e-05/0.9883, allocations: 127 kB / 1.119 GB, free: 30.61 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.622e-05/0.9884, allocations: 35.91 kB / 1.119 GB, free: 30.58 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.25e-05/0.9885, allocations: 94.98 kB / 1.119 GB, free: 30.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.9885, allocations: 26.08 kB / 1.119 GB, free: 30.48 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.528e-05/0.9885, allocations: 11.03 kB / 1.119 GB, free: 30.48 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.9886, allocations: 319.9 kB / 1.12 GB, free: 30.17 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/0.9889, allocations: 85.52 kB / 1.12 GB, free: 30.17 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.9891, allocations: 126.8 kB / 1.12 GB, free: 30.12 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.9894, allocations: 116.3 kB / 1.12 GB, free: 30.09 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.9894, allocations: 0 / 1.12 GB, free: 30.09 MB / 0.698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005619/0.9899, allocations: 278 kB / 1.12 GB, free: 30.01 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.99, allocations: 36.11 kB / 1.12 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.99, allocations: 7.906 kB / 1.12 GB, free: 29.98 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.99, allocations: 4.125 kB / 1.12 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.9902, allocations: 32.59 kB / 1.12 GB, free: 29.97 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.9902, allocations: 3.953 kB / 1.12 GB, free: 29.96 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.9904, allocations: 64.14 kB / 1.12 GB, free: 29.95 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.9905, allocations: 11.31 kB / 1.12 GB, free: 29.95 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 0.0001204/0.9906, allocations: 138.3 kB / 1.121 GB, free: 29.83 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.9906, allocations: 7.75 kB / 1.121 GB, free: 29.82 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000454/0.9911, allocations: 187.7 kB / 1.121 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.9911, allocations: 3.906 kB / 1.121 GB, free: 29.79 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.9911, allocations: 4 kB / 1.121 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.9911, allocations: 3.953 kB / 1.121 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000636/0.9917, allocations: 465.6 kB / 1.121 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.9918, allocations: 0 / 1.121 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.9919, allocations: 24.17 kB / 1.121 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.9919, allocations: 2.484 kB / 1.121 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.295e-05/0.9919, allocations: 0 / 1.121 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.9919, allocations: 11.77 kB / 1.121 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.9919, allocations: 0 / 1.121 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.9924, allocations: 280.5 kB / 1.122 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.9924, allocations: 84.92 kB / 1.122 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.9925, allocations: 5.844 kB / 1.122 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.9926, allocations: 17.44 kB / 1.122 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.273e-05/0.9927, allocations: 25.14 kB / 1.122 GB, free: 29.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.9927, allocations: 6.656 kB / 1.122 GB, free: 29.21 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.688e-05/0.9927, allocations: 98.48 kB / 1.122 GB, free: 29.14 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9928, allocations: 0 / 1.122 GB, free: 29.14 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002644/0.993, allocations: 37.89 kB / 1.122 GB, free: 29.14 MB / 0.698 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 (triggeredSampler.trigger,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0007813/0.9938, allocations: 0.8258 MB / 1.123 GB, free: 28.46 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005048/0.9943, allocations: 254.9 kB / 1.123 GB, free: 28.39 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.9943, allocations: 0 / 1.123 GB, free: 28.39 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.9945, allocations: 82.73 kB / 1.123 GB, free: 28.38 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/0.9948, allocations: 26.11 kB / 1.123 GB, free: 28.37 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008902/0.9957, allocations: 1.042 MB / 1.124 GB, free: 27.38 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.996, allocations: 0.7078 MB / 1.125 GB, free: 26.67 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.934e-05/0.9961, allocations: 7.328 kB / 1.125 GB, free: 26.67 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.971e-05/0.9962, allocations: 36.31 kB / 1.125 GB, free: 26.66 MB / 0.698 GB Notification: Performance of SimCode: time 3e-07/0.9962, allocations: 0 / 1.125 GB, free: 26.66 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/1.011, allocations: 2.721 MB / 1.127 GB, free: 26.4 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/1.011, allocations: 199.4 kB / 1.128 GB, free: 26.16 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/2.69, allocations: 0 / 1.128 GB, free: 26.16 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)