Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.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.Continuous.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse",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.001086/0.001085, allocations: 86.41 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.001505/0.001505, 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.402/1.402, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.552/2.552, allocations: 409.4 MB / 0.684 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004178/0.0004181, allocations: 19.92 kB / 0.8378 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7721/0.7726, allocations: 146.8 MB / 0.9812 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse): time 0.0009109/0.7735, allocations: 445 kB / 0.9816 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.7749, allocations: 1.115 MB / 0.9827 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.714e-05/0.775, allocations: 0 / 0.9827 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.763e-05/0.775, allocations: 3.938 kB / 0.9827 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.222e-05/0.7751, allocations: 7.938 kB / 0.9827 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.7755, allocations: 106.6 kB / 0.9828 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.7757, allocations: 103.8 kB / 0.9829 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.468e-05/0.7758, allocations: 7.984 kB / 0.9829 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.142e-05/0.7758, allocations: 35.86 kB / 0.9829 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.414e-05/0.7759, allocations: 35.84 kB / 0.983 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.776, allocations: 4 kB / 0.983 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.476e-05/0.776, allocations: 19.98 kB / 0.983 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.748e-05/0.776, allocations: 7.969 kB / 0.983 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.979e-05/0.7761, allocations: 41.64 kB / 0.983 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.7762, allocations: 94.02 kB / 0.9831 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7763, allocations: 0 / 0.9831 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7763, allocations: 0 / 0.9831 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.7763, allocations: 0 / 0.9831 GB, free: 4.238 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004974/0.7768, allocations: 372.9 kB / 0.9835 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.7768, allocations: 12.03 kB / 0.9835 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.595e-05/0.7769, allocations: 42.55 kB / 0.9835 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.264e-05/0.7769, allocations: 7.906 kB / 0.9835 GB, free: 3.75 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.7771, allocations: 174.9 kB / 0.9837 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.7771, allocations: 8 kB / 0.9837 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.593e-05/0.7772, allocations: 11.98 kB / 0.9837 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.7773, allocations: 49.58 kB / 0.9838 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.7773, allocations: 0 / 0.9838 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.7773, allocations: 0 / 0.9838 GB, free: 3.465 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.7773, allocations: 3.984 kB / 0.9838 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.265e-05/0.7774, allocations: 16 kB / 0.9838 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004579/0.7778, allocations: 324.9 kB / 0.9841 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.126e-05/0.7779, allocations: 30.47 kB / 0.9841 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.321e-05/0.778, allocations: 12.92 kB / 0.9841 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.027e-05/0.778, allocations: 7.984 kB / 0.9842 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.7781, allocations: 63.39 kB / 0.9842 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.393e-06/0.7781, allocations: 0 / 0.9842 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0001987/0.7783, allocations: 77.53 kB / 0.9843 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.7784, allocations: 55.41 kB / 0.9843 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001185/0.7785, allocations: 125.8 kB / 0.9845 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.7786, allocations: 29.7 kB / 0.9845 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/0.7786, allocations: 92.05 kB / 0.9846 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.447e-05/0.7787, allocations: 11.91 kB / 0.9846 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/0.7787, allocations: 4 kB / 0.9846 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.7788, allocations: 318.8 kB / 0.9849 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.034e-05/0.7789, allocations: 35.98 kB / 0.9849 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.667e-05/0.779, allocations: 54.56 kB / 0.985 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.751e-05/0.7791, allocations: 61.69 kB / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.7791, allocations: 0 / 0.985 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002734/0.7794, allocations: 167.2 kB / 0.9852 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.112e-05/0.7794, allocations: 37.69 kB / 0.9852 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.7794, allocations: 7.938 kB / 0.9852 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.7795, allocations: 0 / 0.9852 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.49e-05/0.7795, allocations: 7.938 kB / 0.9853 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.7795, allocations: 4.016 kB / 0.9853 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.7798, allocations: 43.88 kB / 0.9853 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.7798, allocations: 15.97 kB / 0.9853 GB, free: 1.734 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 9.585e-05/0.7799, allocations: 113.8 kB / 0.9854 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.7799, allocations: 7.953 kB / 0.9854 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.78, allocations: 7.906 kB / 0.9854 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.78, allocations: 0 / 0.9854 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.78, allocations: 0 / 0.9854 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.78, allocations: 4 kB / 0.9854 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.7801, allocations: 173.6 kB / 0.9856 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.7801, allocations: 0 / 0.9856 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.918e-05/0.7802, allocations: 4 kB / 0.9856 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.7802, allocations: 3.953 kB / 0.9856 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.7802, allocations: 4 kB / 0.9856 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.7802, allocations: 64 / 0.9856 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7802, allocations: 8.219 kB / 0.9856 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.7803, allocations: 96.95 kB / 0.9857 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.7804, allocations: 81.02 kB / 0.9858 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.7804, allocations: 7.953 kB / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.777e-05/0.7804, allocations: 0 / 0.9858 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.232e-05/0.7805, allocations: 7.984 kB / 0.9858 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.7805, allocations: 0 / 0.9858 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.64e-05/0.7805, allocations: 99.27 kB / 0.9859 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.7805, allocations: 0 / 0.9859 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002326/0.7808, allocations: 16 kB / 0.9859 GB, free: 1.012 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004375/0.7812, allocations: 0.6358 MB / 0.9865 GB, free: 352 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002151/0.7814, allocations: 131.4 kB / 0.9867 GB, free: 208 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7815, allocations: 0 / 0.9867 GB, free: 208 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.719e-05/0.7815, allocations: 23.92 kB / 0.9867 GB, free: 184 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.7817, allocations: 24.02 kB / 0.9867 GB, free: 160 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009364/0.7827, allocations: 0.5977 MB / 0.9873 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.783, allocations: 0.6848 MB / 0.988 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 2.906e-05/0.783, allocations: 4.188 kB / 0.988 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.743e-05/0.783, allocations: 19.42 kB / 0.988 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of SimCode: time 1.363e-06/0.7831, allocations: 0 / 0.988 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0134/0.7965, allocations: 2.149 MB / 0.9901 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002915/0.7968, allocations: 205.3 kB / 0.9903 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.63, allocations: 64 / 0.9903 GB, free: 12.58 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse_res.mat does not exist to compare? outputFormat=mat