Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",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.001028/0.001028, allocations: 84.38 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.001179/0.001179, 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.437/1.437, allocations: 223.2 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.47/2.47, allocations: 390.4 MB / 0.6655 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003452, allocations: 12 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7733/0.7737, allocations: 142.3 MB / 0.9539 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.0009683/0.7747, allocations: 0.499 MB / 0.9544 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001396/0.7761, allocations: 1.109 MB / 0.9554 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.174e-05/0.7762, allocations: 0.8438 kB / 0.9554 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.7762, allocations: 5.125 kB / 0.9554 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.392e-05/0.7763, allocations: 16.88 kB / 0.9555 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/0.7768, allocations: 109.8 kB / 0.9556 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.7769, allocations: 100.3 kB / 0.9557 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.107e-05/0.777, allocations: 17.44 kB / 0.9557 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.859e-05/0.7771, allocations: 49.31 kB / 0.9557 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.521e-05/0.7772, allocations: 39.25 kB / 0.9558 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.279e-05/0.7772, allocations: 6.375 kB / 0.9558 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.595e-05/0.7773, allocations: 19.95 kB / 0.9558 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.043e-05/0.7773, allocations: 14.3 kB / 0.9558 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.7774, allocations: 33.11 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.7775, allocations: 80.61 kB / 0.9559 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.7775, allocations: 3.938 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.913e-06/0.7775, allocations: 1.031 kB / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.7775, allocations: 0 / 0.9559 GB, free: 6.5 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005436/0.7781, allocations: 424.2 kB / 0.9563 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.7781, allocations: 9.875 kB / 0.9563 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.049e-05/0.7781, allocations: 35.53 kB / 0.9564 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.227e-05/0.7782, allocations: 13.92 kB / 0.9564 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.763e-05/0.7783, allocations: 171.2 kB / 0.9565 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.7783, allocations: 6.844 kB / 0.9566 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.7783, allocations: 5.312 kB / 0.9566 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002414/0.7786, allocations: 88.33 kB / 0.9566 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.7786, allocations: 0 / 0.9566 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.7786, allocations: 9.203 kB / 0.9566 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.7786, allocations: 9.078 kB / 0.9567 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/0.7789, allocations: 93.17 kB / 0.9567 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004176/0.7793, allocations: 326.2 kB / 0.9571 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.7795, allocations: 70.38 kB / 0.9571 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.7797, allocations: 47.42 kB / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.7797, allocations: 0 / 0.9572 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.78, allocations: 118.2 kB / 0.9573 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.78, allocations: 0 / 0.9573 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.000601/0.7806, allocations: 198.5 kB / 0.9575 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.7807, allocations: 52.88 kB / 0.9575 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.76e-05/0.7808, allocations: 126.3 kB / 0.9576 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.7808, allocations: 27.17 kB / 0.9577 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.7809, allocations: 98.5 kB / 0.9578 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.7809, allocations: 7.812 kB / 0.9578 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.7809, allocations: 7.188 kB / 0.9578 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.123e-05/0.781, allocations: 321.5 kB / 0.9581 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.7812, allocations: 72.69 kB / 0.9582 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.7814, allocations: 89.86 kB / 0.9582 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.7816, allocations: 104.1 kB / 0.9583 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.7816, allocations: 0 / 0.9583 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004828/0.7821, allocations: 234.7 kB / 0.9586 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.7822, allocations: 45.42 kB / 0.9586 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.7822, allocations: 0 / 0.9586 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.7822, allocations: 1.25 kB / 0.9586 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.7824, allocations: 20.05 kB / 0.9586 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.7824, allocations: 5.469 kB / 0.9586 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/0.7826, allocations: 63.86 kB / 0.9587 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.7826, allocations: 5.5 kB / 0.9587 GB, free: 4.109 MB / 0.7169 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.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.189e-05/0.7827, allocations: 127.2 kB / 0.9588 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.7828, allocations: 6.734 kB / 0.9588 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.7828, allocations: 15.08 kB / 0.9588 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.7828, allocations: 0 / 0.9588 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.7828, allocations: 1.375 kB / 0.9588 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7828, allocations: 0 / 0.9588 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.783, allocations: 178 kB / 0.959 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.783, allocations: 3.938 kB / 0.959 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.642e-05/0.7831, allocations: 28.47 kB / 0.959 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.7831, allocations: 0 / 0.959 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.7831, allocations: 1.375 kB / 0.959 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.7831, allocations: 3.953 kB / 0.959 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.7831, allocations: 1.375 kB / 0.959 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003662/0.7835, allocations: 174.7 kB / 0.9592 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.473e-05/0.7835, allocations: 83.58 kB / 0.9593 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.7835, allocations: 1.531 kB / 0.9593 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.7836, allocations: 18.8 kB / 0.9593 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.7837, allocations: 14.59 kB / 0.9593 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.7837, allocations: 3 kB / 0.9593 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.904e-05/0.7837, allocations: 93.73 kB / 0.9594 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7837, allocations: 0 / 0.9594 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002297/0.784, allocations: 24.75 kB / 0.9594 GB, free: 3.41 MB / 0.7169 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,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0005856/0.7846, allocations: 0.7142 MB / 0.9601 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004645/0.785, allocations: 212.4 kB / 0.9603 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7851, allocations: 0 / 0.9603 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.7852, allocations: 61.94 kB / 0.9604 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.7855, allocations: 15 kB / 0.9604 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.7869, allocations: 0.7195 MB / 0.9611 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.787, allocations: 0.6994 MB / 0.9618 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.26e-05/0.787, allocations: 4.312 kB / 0.9618 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.692e-05/0.7871, allocations: 25.77 kB / 0.9618 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.7871, allocations: 0 / 0.9618 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01314/0.8002, allocations: 2.285 MB / 0.9641 GB, free: 240 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001652/0.8005, allocations: 188.6 kB / 0.9642 GB, free: 16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.567, allocations: 1.219 kB / 0.9642 GB, free: 16 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat does not exist to compare? outputFormat=mat