Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_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.0008855/0.0008856, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.0008472/0.0008474, allocations: 172.7 kB / 15.95 MB, free: 208 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.414/1.414, allocations: 223.3 MB / 240 MB, free: 5.238 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.439/2.439, allocations: 390.4 MB / 0.6655 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003653, allocations: 11.98 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8232/0.8235, allocations: 142.3 MB / 0.9539 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.000973/0.8246, allocations: 0.5164 MB / 0.9544 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.8259, allocations: 1.173 MB / 0.9555 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.395e-05/0.826, allocations: 1.688 kB / 0.9555 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.732e-05/0.826, allocations: 3.938 kB / 0.9555 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.621e-05/0.8261, allocations: 17.17 kB / 0.9555 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.8266, allocations: 128.1 kB / 0.9557 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.8267, allocations: 124.3 kB / 0.9558 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.775e-05/0.8268, allocations: 20.7 kB / 0.9558 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.408e-05/0.8269, allocations: 52.75 kB / 0.9558 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.999e-05/0.827, allocations: 50.48 kB / 0.9559 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.8271, allocations: 11.06 kB / 0.9559 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.83e-05/0.8271, allocations: 21.05 kB / 0.9559 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.468e-05/0.8272, allocations: 10.95 kB / 0.9559 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.072e-05/0.8272, allocations: 42.77 kB / 0.956 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.8274, allocations: 94.52 kB / 0.9561 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.8274, allocations: 0 / 0.9561 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.093e-06/0.8274, allocations: 1.344 kB / 0.9561 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.8274, allocations: 0 / 0.9561 GB, free: 6.387 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005996/0.828, allocations: 438.9 kB / 0.9565 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.828, allocations: 9.562 kB / 0.9565 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.935e-05/0.8281, allocations: 32.78 kB / 0.9565 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.8282, allocations: 15.02 kB / 0.9565 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.8283, allocations: 191 kB / 0.9567 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.8283, allocations: 4.938 kB / 0.9567 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.8283, allocations: 15.81 kB / 0.9567 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.8286, allocations: 113.2 kB / 0.9568 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.8286, allocations: 0 / 0.9568 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.8287, allocations: 5.031 kB / 0.9568 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.8287, allocations: 1.125 kB / 0.9569 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.829, allocations: 110.5 kB / 0.957 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.8296, allocations: 383.6 kB / 0.9573 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.8298, allocations: 107.4 kB / 0.9574 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.83, allocations: 64.25 kB / 0.9575 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.83, allocations: 5.25 kB / 0.9575 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003073/0.8303, allocations: 130.2 kB / 0.9576 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.8304, allocations: 3.938 kB / 0.9576 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006254/0.831, allocations: 246.2 kB / 0.9579 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.831, allocations: 58.72 kB / 0.9579 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.184e-05/0.8311, allocations: 126.8 kB / 0.958 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.8312, allocations: 34.33 kB / 0.9581 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.8312, allocations: 100.6 kB / 0.9582 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.8312, allocations: 31.94 kB / 0.9582 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/0.8313, allocations: 5.531 kB / 0.9582 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.462e-05/0.8313, allocations: 321.7 kB / 0.9585 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002163/0.8315, allocations: 86.19 kB / 0.9586 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.8318, allocations: 124.5 kB / 0.9587 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.832, allocations: 121 kB / 0.9588 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.832, allocations: 1.344 kB / 0.9588 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005644/0.8326, allocations: 282.6 kB / 0.9591 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.8326, allocations: 43.03 kB / 0.9591 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.8326, allocations: 5.5 kB / 0.9591 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.8327, allocations: 1.375 kB / 0.9591 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.8328, allocations: 31.16 kB / 0.9592 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.8328, allocations: 1.375 kB / 0.9592 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.8331, allocations: 66.3 kB / 0.9592 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.8331, allocations: 8.25 kB / 0.9592 GB, free: 3.766 MB / 0.7169 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 9.224e-05/0.8332, allocations: 130 kB / 0.9594 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.8332, allocations: 11.98 kB / 0.9594 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004345/0.8337, allocations: 192.4 kB / 0.9596 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.8337, allocations: 6.25 kB / 0.9596 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.8337, allocations: 0 / 0.9596 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.8337, allocations: 0 / 0.9596 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005832/0.8343, allocations: 473.3 kB / 0.96 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.8343, allocations: 0 / 0.96 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.844e-05/0.8344, allocations: 21.2 kB / 0.96 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.8344, allocations: 3.984 kB / 0.96 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.8344, allocations: 9.203 kB / 0.96 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8344, allocations: 1.219 kB / 0.96 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.8344, allocations: 0 / 0.96 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000421/0.8349, allocations: 290 kB / 0.9603 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.904e-05/0.8349, allocations: 87.42 kB / 0.9604 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.8349, allocations: 9.969 kB / 0.9604 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.835, allocations: 20.17 kB / 0.9604 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.8351, allocations: 18.09 kB / 0.9605 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.8351, allocations: 6.984 kB / 0.9605 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.254e-05/0.8352, allocations: 93.73 kB / 0.9606 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8352, allocations: 0 / 0.9606 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002828/0.8355, allocations: 37.97 kB / 0.9606 GB, free: 2.664 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: 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.0006612/0.8361, allocations: 0.8274 MB / 0.9614 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005371/0.8367, allocations: 258 kB / 0.9616 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.8367, allocations: 1.188 kB / 0.9616 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.8369, allocations: 76.45 kB / 0.9617 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.8372, allocations: 19.92 kB / 0.9617 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.8387, allocations: 0.8686 MB / 0.9626 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001319/0.8389, allocations: 0.6933 MB / 0.9633 GB, free: 404 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.768e-05/0.8389, allocations: 10.86 kB / 0.9633 GB, free: 396 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.707e-05/0.839, allocations: 24.59 kB / 0.9633 GB, free: 376 kB / 0.7169 GB Notification: Performance of SimCode: time 3.4e-07/0.839, allocations: 0 / 0.9633 GB, free: 376 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01357/0.8526, allocations: 2.727 MB / 0.966 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/0.8528, allocations: 199 kB / 0.9661 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/2.526, allocations: 0 / 0.9661 GB, free: 14.84 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat does not exist to compare? outputFormat=mat