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.001047/0.001047, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0009321/0.0009322, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.582/2.582, allocations: 409.4 MB / 0.684 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 11.98 kB / 0.8378 GB, free: 6.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7875/0.7878, allocations: 146.8 MB / 0.9812 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.000951/0.7888, allocations: 0.5148 MB / 0.9817 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001412/0.7903, allocations: 1.175 MB / 0.9828 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.7903, allocations: 11.94 kB / 0.9828 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.573e-05/0.7903, allocations: 0 / 0.9828 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.9e-05/0.7904, allocations: 7.875 kB / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004588/0.7909, allocations: 126.8 kB / 0.9829 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.791, allocations: 123.7 kB / 0.9831 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.849e-05/0.7911, allocations: 24.22 kB / 0.9831 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.441e-05/0.7912, allocations: 55.81 kB / 0.9831 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.958e-05/0.7913, allocations: 51.81 kB / 0.9832 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.7914, allocations: 7.938 kB / 0.9832 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.243e-05/0.7914, allocations: 27.97 kB / 0.9832 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.562e-05/0.7915, allocations: 15.92 kB / 0.9832 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.63e-05/0.7915, allocations: 37.7 kB / 0.9833 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.7917, allocations: 98.02 kB / 0.9834 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.7917, allocations: 0 / 0.9834 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.263e-06/0.7917, allocations: 0 / 0.9834 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.7917, allocations: 4 kB / 0.9834 GB, free: 4.02 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.0006186/0.7923, allocations: 436.6 kB / 0.9838 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.7924, allocations: 8.031 kB / 0.9838 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.089e-05/0.7924, allocations: 42.55 kB / 0.9838 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.285e-05/0.7925, allocations: 11.91 kB / 0.9839 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.7926, allocations: 175 kB / 0.984 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.7926, allocations: 8 kB / 0.984 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.7927, allocations: 12 kB / 0.984 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.793, allocations: 105.6 kB / 0.9841 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.793, allocations: 0 / 0.9841 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.793, allocations: 4 kB / 0.9841 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.793, allocations: 0 / 0.9841 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.7933, allocations: 115.8 kB / 0.9843 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000552/0.7939, allocations: 384.6 kB / 0.9846 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.7942, allocations: 102.6 kB / 0.9847 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.7944, allocations: 72.81 kB / 0.9848 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.7944, allocations: 0 / 0.9848 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.7947, allocations: 131.3 kB / 0.9849 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 3.717e-06/0.7947, allocations: 0 / 0.9849 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0006152/0.7953, allocations: 245.3 kB / 0.9851 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.7954, allocations: 55.41 kB / 0.9852 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.7955, allocations: 140.2 kB / 0.9853 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.87e-05/0.7955, allocations: 33.7 kB / 0.9854 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.7956, allocations: 100.1 kB / 0.9855 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.7957, allocations: 27.61 kB / 0.9855 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-05/0.7957, allocations: 8 kB / 0.9855 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002144/0.7959, allocations: 318.8 kB / 0.9858 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.7961, allocations: 95.89 kB / 0.9859 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002402/0.7964, allocations: 125.6 kB / 0.986 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.7966, allocations: 109.7 kB / 0.9861 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.7966, allocations: 7.938 kB / 0.9861 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005743/0.7972, allocations: 291.3 kB / 0.9864 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.7972, allocations: 33.69 kB / 0.9864 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.7973, allocations: 4 kB / 0.9864 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.7973, allocations: 4 kB / 0.9864 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.7974, allocations: 27.98 kB / 0.9865 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.7974, allocations: 3.984 kB / 0.9865 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.7977, allocations: 63.83 kB / 0.9865 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.7977, allocations: 12 kB / 0.9865 GB, free: 0.5078 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.0001065/0.7978, allocations: 133.7 kB / 0.9867 GB, free: 376 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.764e-05/0.7979, allocations: 11.89 kB / 0.9867 GB, free: 364 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004451/0.7983, allocations: 186 kB / 0.9869 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.7983, allocations: 0 / 0.9869 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.7983, allocations: 3.938 kB / 0.9869 GB, free: 164 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-06/0.7983, allocations: 3.984 kB / 0.9869 GB, free: 160 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007399/0.7991, allocations: 474.3 kB / 0.9873 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7991, allocations: 0 / 0.9873 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.7992, allocations: 27.92 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.7992, allocations: 0 / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.7992, allocations: 4 kB / 0.9873 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.7992, allocations: 3.984 kB / 0.9874 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.7992, allocations: 0 / 0.9874 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004472/0.7997, allocations: 287.2 kB / 0.9876 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 3.874e-05/0.7997, allocations: 81.02 kB / 0.9877 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.7998, allocations: 4 kB / 0.9877 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.7999, allocations: 23.98 kB / 0.9877 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.8, allocations: 15.97 kB / 0.9877 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.8, allocations: 7.984 kB / 0.9878 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 5.236e-05/0.8, allocations: 97.02 kB / 0.9878 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8001, allocations: 0 / 0.9878 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002716/0.8003, allocations: 28 kB / 0.9879 GB, free: 15.04 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.000902/0.8012, allocations: 0.8371 MB / 0.9887 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000538/0.8018, allocations: 252.2 kB / 0.9889 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8018, allocations: 0 / 0.9889 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.802, allocations: 84.14 kB / 0.989 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.8023, allocations: 17.45 kB / 0.989 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.8039, allocations: 0.8798 MB / 0.9899 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.8042, allocations: 0.7003 MB / 0.9906 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.268e-05/0.8043, allocations: 4.562 kB / 0.9906 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.8043, allocations: 35.42 kB / 0.9906 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of SimCode: time 2.81e-07/0.8043, allocations: 0 / 0.9906 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.8194, allocations: 2.734 MB / 0.9933 GB, free: 9.543 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.8197, allocations: 199.3 kB / 0.9935 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.616, allocations: 0 / 0.9935 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