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/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001708/0.001707, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.99/2.99, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.393/5.393, allocations: 409.2 MB / 0.6838 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007445/0.0007449, allocations: 12 kB / 0.8375 GB, free: 6.559 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.697/1.698, allocations: 146.8 MB / 0.9809 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001859/1.7, allocations: 0.5109 MB / 0.9814 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002697/1.703, allocations: 1.163 MB / 0.9825 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-05/1.703, allocations: 0 / 0.9825 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.884e-05/1.703, allocations: 0 / 0.9825 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001649/1.703, allocations: 19.91 kB / 0.9825 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009164/1.704, allocations: 130.3 kB / 0.9827 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002257/1.704, allocations: 75.91 kB / 0.9827 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/1.704, allocations: 20.22 kB / 0.9828 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/1.704, allocations: 51.83 kB / 0.9828 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/1.705, allocations: 51.8 kB / 0.9829 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/1.705, allocations: 8 kB / 0.9829 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/1.705, allocations: 23.98 kB / 0.9829 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.942e-05/1.705, allocations: 11.98 kB / 0.9829 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/1.705, allocations: 37.64 kB / 0.9829 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002609/1.705, allocations: 106 kB / 0.983 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.705, allocations: 0 / 0.983 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.358e-06/1.705, allocations: 0 / 0.983 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.856e-06/1.705, allocations: 0 / 0.983 GB, free: 4.098 MB / 0.7325 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.001186/1.706, allocations: 436.7 kB / 0.9835 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.679e-05/1.707, allocations: 12.03 kB / 0.9835 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.851e-05/1.707, allocations: 38.55 kB / 0.9835 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.234e-05/1.707, allocations: 11.91 kB / 0.9835 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/1.707, allocations: 174.9 kB / 0.9837 GB, free: 3.336 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/1.707, allocations: 8 kB / 0.9837 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/1.707, allocations: 8 kB / 0.9837 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/1.708, allocations: 116.5 kB / 0.9838 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/1.708, allocations: 3.938 kB / 0.9838 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/1.708, allocations: 3.984 kB / 0.9838 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/1.708, allocations: 4 kB / 0.9838 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005586/1.708, allocations: 107.9 kB / 0.9839 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/1.709, allocations: 380.5 kB / 0.9843 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006081/1.71, allocations: 110.6 kB / 0.9844 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.968e-05/1.71, allocations: 7.984 kB / 0.9844 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005112/1.711, allocations: 127.3 kB / 0.9845 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 2.786e-06/1.711, allocations: 0 / 0.9845 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.001191/1.712, allocations: 245.5 kB / 0.9848 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.412e-05/1.712, allocations: 55.39 kB / 0.9848 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/1.712, allocations: 133.9 kB / 0.9849 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.702e-05/1.712, allocations: 33.7 kB / 0.985 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/1.712, allocations: 104 kB / 0.9851 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.773e-05/1.712, allocations: 31.61 kB / 0.9851 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/1.713, allocations: 0 / 0.9851 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002357/1.713, allocations: 322.8 kB / 0.9854 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/1.713, allocations: 91.94 kB / 0.9855 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/1.714, allocations: 120.2 kB / 0.9856 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004682/1.714, allocations: 117.6 kB / 0.9857 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/1.714, allocations: 0 / 0.9857 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001151/1.715, allocations: 293.9 kB / 0.986 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.795e-05/1.716, allocations: 33.7 kB / 0.986 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/1.716, allocations: 0 / 0.986 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/1.716, allocations: 4 kB / 0.986 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/1.716, allocations: 31.91 kB / 0.9861 GB, free: 0.7344 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/1.716, allocations: 4 kB / 0.9861 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004181/1.716, allocations: 63.83 kB / 0.9861 GB, free: 0.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/1.716, allocations: 11.98 kB / 0.9861 GB, free: 0.6562 MB / 0.7325 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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.0002147/1.717, allocations: 129.7 kB / 0.9863 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.1e-05/1.717, allocations: 11.91 kB / 0.9863 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007918/1.717, allocations: 186 kB / 0.9865 GB, free: 324 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/1.717, allocations: 4 kB / 0.9865 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/1.717, allocations: 0 / 0.9865 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/1.718, allocations: 0 / 0.9865 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/1.719, allocations: 474.2 kB / 0.9869 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/1.719, allocations: 4 kB / 0.9869 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/1.719, allocations: 35.97 kB / 0.9869 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.764e-06/1.719, allocations: 0 / 0.9869 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/1.719, allocations: 0 / 0.9869 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/1.719, allocations: 0 / 0.9869 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/1.719, allocations: 3.938 kB / 0.987 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008931/1.72, allocations: 291.1 kB / 0.9872 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.757e-05/1.72, allocations: 85.02 kB / 0.9873 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/1.72, allocations: 0 / 0.9873 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/1.72, allocations: 27.97 kB / 0.9873 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/1.721, allocations: 15.97 kB / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/1.721, allocations: 8 kB / 0.9874 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001064/1.721, allocations: 91.27 kB / 0.9874 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.51e-07/1.721, allocations: 0 / 0.9874 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005949/1.721, allocations: 32 kB / 0.9875 GB, free: 15.18 MB / 0.7481 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 (zeroCrossing.y,$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.001588/1.723, allocations: 0.8278 MB / 0.9883 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001149/1.724, allocations: 251.3 kB / 0.9885 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.724, allocations: 0 / 0.9885 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004136/1.725, allocations: 92.28 kB / 0.9886 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004294/1.725, allocations: 8 kB / 0.9886 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/1.727, allocations: 1.06 MB / 0.9897 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005931/1.728, allocations: 0.6965 MB / 0.9903 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.93e-05/1.728, allocations: 8.562 kB / 0.9903 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/1.728, allocations: 31.36 kB / 0.9904 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of SimCode: time 9.72e-07/1.728, allocations: 4 kB / 0.9904 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/1.764, allocations: 2.701 MB / 0.993 GB, free: 9.539 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003825/1.765, allocations: 189.2 kB / 0.9932 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.13/4.895, allocations: 0 / 0.9932 GB, free: 9.305 MB / 0.7481 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) Environment - environmentSimulation: 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