Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",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.001385/0.001385, allocations: 100 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.001658/0.001658, 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.086/2.086, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.582/4.582, allocations: 409.2 MB / 0.6838 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001398, allocations: 8 kB / 0.8375 GB, free: 6.559 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.677/1.678, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001578/1.68, allocations: 391.8 kB / 0.9813 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002469/1.682, allocations: 1.131 MB / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.825e-05/1.683, allocations: 0 / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.964e-05/1.683, allocations: 0 / 0.9824 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001298/1.683, allocations: 11.98 kB / 0.9824 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00105/1.684, allocations: 196.2 kB / 0.9826 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001925/1.684, allocations: 83.83 kB / 0.9826 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/1.684, allocations: 7.984 kB / 0.9826 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/1.684, allocations: 59.89 kB / 0.9827 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/1.685, allocations: 47.86 kB / 0.9827 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/1.685, allocations: 12 kB / 0.9828 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/1.685, allocations: 23.92 kB / 0.9828 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.504e-05/1.685, allocations: 15.92 kB / 0.9828 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.358e-05/1.685, allocations: 37.7 kB / 0.9828 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002348/1.685, allocations: 102 kB / 0.9829 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/1.685, allocations: 0 / 0.9829 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.356e-06/1.685, allocations: 0 / 0.9829 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.27e-06/1.685, allocations: 0 / 0.9829 GB, free: 4.188 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007045/1.686, allocations: 410.6 kB / 0.9833 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.026e-05/1.686, allocations: 12.03 kB / 0.9833 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.498e-05/1.686, allocations: 34.56 kB / 0.9834 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/1.686, allocations: 7.938 kB / 0.9834 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001935/1.686, allocations: 171 kB / 0.9835 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/1.686, allocations: 8 kB / 0.9835 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/1.686, allocations: 12 kB / 0.9836 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/1.687, allocations: 49.62 kB / 0.9836 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/1.687, allocations: 0 / 0.9836 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/1.687, allocations: 4 kB / 0.9836 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/1.687, allocations: 0 / 0.9836 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.271e-05/1.687, allocations: 16 kB / 0.9836 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007331/1.687, allocations: 364.6 kB / 0.984 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/1.688, allocations: 34.53 kB / 0.984 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/1.688, allocations: 0 / 0.984 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/1.688, allocations: 87.39 kB / 0.9841 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/1.688, allocations: 0 / 0.9841 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003708/1.688, allocations: 105.6 kB / 0.9842 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/1.688, allocations: 51.41 kB / 0.9842 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/1.688, allocations: 122 kB / 0.9844 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.202e-05/1.688, allocations: 29.7 kB / 0.9844 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/1.689, allocations: 100.2 kB / 0.9845 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.552e-05/1.689, allocations: 7.906 kB / 0.9845 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-05/1.689, allocations: 4 kB / 0.9845 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001705/1.689, allocations: 330.8 kB / 0.9848 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/1.689, allocations: 59.97 kB / 0.9849 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/1.689, allocations: 92.19 kB / 0.9849 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/1.69, allocations: 111.4 kB / 0.9851 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.69, allocations: 4 kB / 0.9851 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006287/1.69, allocations: 264.8 kB / 0.9853 GB, free: 1.465 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-05/1.69, allocations: 71.39 kB / 0.9854 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/1.69, allocations: 0 / 0.9854 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/1.69, allocations: 0 / 0.9854 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.242e-05/1.69, allocations: 4 kB / 0.9854 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/1.69, allocations: 3.938 kB / 0.9854 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005845/1.691, allocations: 85.52 kB / 0.9855 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/1.691, allocations: 15.98 kB / 0.9855 GB, free: 1.277 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: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001665/1.691, allocations: 127.4 kB / 0.9856 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/1.691, allocations: 3.953 kB / 0.9856 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/1.691, allocations: 16.36 kB / 0.9856 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/1.691, allocations: 0 / 0.9856 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/1.691, allocations: 0 / 0.9856 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/1.691, allocations: 0 / 0.9856 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/1.692, allocations: 177.5 kB / 0.9858 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/1.692, allocations: 0 / 0.9858 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.07e-05/1.692, allocations: 480 / 0.9858 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/1.692, allocations: 11.95 kB / 0.9858 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/1.692, allocations: 0 / 0.9858 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.692, allocations: 0 / 0.9858 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.692, allocations: 0 / 0.9858 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/1.692, allocations: 117 kB / 0.9859 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.376e-05/1.692, allocations: 81.02 kB / 0.986 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/1.692, allocations: 7.953 kB / 0.986 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.313e-05/1.692, allocations: 4 kB / 0.986 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/1.692, allocations: 11.98 kB / 0.986 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/1.692, allocations: 11.97 kB / 0.986 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.096e-05/1.692, allocations: 83.28 kB / 0.9861 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/1.692, allocations: 0 / 0.9861 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004188/1.693, allocations: 35.98 kB / 0.9861 GB, free: 0.5039 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: 7 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000757/1.693, allocations: 0.6552 MB / 0.9868 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005461/1.694, allocations: 251.1 kB / 0.987 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.694, allocations: 0 / 0.987 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.208e-05/1.694, allocations: 27.98 kB / 0.987 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/1.694, allocations: 19.94 kB / 0.9871 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/1.696, allocations: 0.9875 MB / 0.988 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/1.696, allocations: 0.6887 MB / 0.9887 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.686e-05/1.696, allocations: 7.984 kB / 0.9887 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.956e-05/1.696, allocations: 19.44 kB / 0.9887 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of SimCode: time 5.51e-07/1.696, allocations: 0 / 0.9887 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03332/1.73, allocations: 2.567 MB / 0.9912 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003169/1.73, allocations: 176.6 kB / 0.9914 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.156/4.886, allocations: 0 / 0.9914 GB, free: 11.05 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat does not exist to compare? outputFormat=mat