Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.412/2.412, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 176 kB / 0.4901 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.721/1.721, allocations: 223.1 MB / 0.7992 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 94.94 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004074/0.0004074, allocations: 11.97 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3132, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.5051, allocations: 150.7 MB / 1.376 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.5054, allocations: 67.97 kB / 1.377 GB, free: 2.746 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.008416/0.5138, allocations: 2.498 MB / 1.379 GB, free: 252 kB / 0.8698 GB Notification: Performance of FrontEnd: time 3.467e-06/0.5139, allocations: 0 / 1.379 GB, free: 252 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.262e-05/0.5139, allocations: 8 kB / 1.379 GB, free: 244 kB / 0.8698 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.0007915/0.5147, allocations: 454 kB / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.5148, allocations: 8.562 kB / 1.379 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.189e-05/0.5149, allocations: 42.55 kB / 1.379 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.5149, allocations: 7.906 kB / 1.379 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.5151, allocations: 174.9 kB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.5151, allocations: 8 kB / 1.38 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.5151, allocations: 12 kB / 1.38 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.5154, allocations: 103.8 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.5155, allocations: 0 / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.5155, allocations: 19.97 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.5155, allocations: 0 / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003482/0.5159, allocations: 107.9 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006313/0.5165, allocations: 380.6 kB / 1.38 GB, free: 14.79 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.5168, allocations: 106.6 kB / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.5168, allocations: 7.938 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003411/0.5172, allocations: 127.4 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=12): time 2.204e-06/0.5172, allocations: 0 / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12): time 0.0006813/0.5179, allocations: 245.4 kB / 1.381 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.5179, allocations: 59.39 kB / 1.381 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.357e-05/0.518, allocations: 121 kB / 1.381 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.5181, allocations: 37.64 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.46e-05/0.5182, allocations: 96.03 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/0.5182, allocations: 27.7 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.483e-05/0.5182, allocations: 7.938 kB / 1.381 GB, free: 13.92 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.5183, allocations: 318.8 kB / 1.381 GB, free: 13.6 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.5186, allocations: 91.94 kB / 1.381 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.5189, allocations: 128.2 kB / 1.382 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.5191, allocations: 109.7 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5191, allocations: 0 / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006338/0.5198, allocations: 282.7 kB / 1.382 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.673e-05/0.5198, allocations: 43.41 kB / 1.382 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.5198, allocations: 4 kB / 1.382 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.5199, allocations: 3.953 kB / 1.382 GB, free: 12.91 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.52, allocations: 36.06 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.5201, allocations: 3.938 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.5203, allocations: 67.8 kB / 1.382 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.5204, allocations: 8 kB / 1.382 GB, free: 12.8 MB / 0.8855 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.0001257/0.5205, allocations: 125.7 kB / 1.382 GB, free: 12.67 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.5205, allocations: 11.89 kB / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004939/0.521, allocations: 194.4 kB / 1.382 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.5211, allocations: 7.953 kB / 1.382 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.5211, allocations: 0 / 1.382 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.5211, allocations: 0 / 1.382 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006757/0.5218, allocations: 462.5 kB / 1.383 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.5218, allocations: 11.88 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.5219, allocations: 19.98 kB / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.5219, allocations: 3.953 kB / 1.383 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.5219, allocations: 4 kB / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.5219, allocations: 3.984 kB / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5219, allocations: 4 kB / 1.383 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004606/0.5224, allocations: 271.4 kB / 1.383 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.5225, allocations: 89 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.5225, allocations: 7.953 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.5227, allocations: 15.98 kB / 1.383 GB, free: 11.48 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.5227, allocations: 23.91 kB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.5228, allocations: 7.984 kB / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.276e-05/0.5228, allocations: 99.27 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.553e-06/0.5228, allocations: 0 / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000292/0.5231, allocations: 43.88 kB / 1.383 GB, free: 11.31 MB / 0.8855 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.0008208/0.5239, allocations: 0.8163 MB / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005447/0.5245, allocations: 267 kB / 1.384 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5245, allocations: 4.25 kB / 1.384 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002212/0.5247, allocations: 75.95 kB / 1.385 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.525, allocations: 15.94 kB / 1.385 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009687/0.526, allocations: 1.069 MB / 1.386 GB, free: 8.961 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.5262, allocations: 0.6965 MB / 1.386 GB, free: 8.238 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.948e-05/0.5263, allocations: 12.55 kB / 1.386 GB, free: 8.227 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.397e-05/0.5264, allocations: 27.42 kB / 1.386 GB, free: 8.203 MB / 0.8855 GB Notification: Performance of SimCode: time 3.31e-07/0.5264, allocations: 4 kB / 1.386 GB, free: 8.199 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.5431, allocations: 2.691 MB / 1.389 GB, free: 5.668 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.5433, allocations: 197.7 kB / 1.389 GB, free: 5.422 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/2.194, allocations: 2.391 kB / 1.389 GB, free: 5.422 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat does not exist to compare? outputFormat=mat