Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.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.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",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.001424/0.001424, allocations: 99.55 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.00154/0.001539, allocations: 177.3 kB / 15.94 MB, free: 228 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.532/1.532, allocations: 223.2 MB / 239.9 MB, free: 5.461 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.421/2.421, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003325, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8386/0.8389, allocations: 142.3 MB / 0.9536 GB, free: 8.336 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001514/0.8405, allocations: 1.151 MB / 0.9547 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006213/0.8411, allocations: 357.4 kB / 0.9551 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.8412, allocations: 1.25 kB / 0.9551 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.615e-05/0.8412, allocations: 7.984 kB / 0.9551 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.451e-05/0.8413, allocations: 5.016 kB / 0.9551 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.8416, allocations: 73.12 kB / 0.9551 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.477e-05/0.8417, allocations: 16.33 kB / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.807e-05/0.8417, allocations: 7.172 kB / 0.9552 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.055e-05/0.8418, allocations: 3.25 kB / 0.9552 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.127e-05/0.8418, allocations: 18.73 kB / 0.9552 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.8419, allocations: 1.875 kB / 0.9552 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003484/0.8422, allocations: 257 kB / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.8422, allocations: 0 / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.161e-05/0.8423, allocations: 28.3 kB / 0.9555 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.8424, allocations: 65.69 kB / 0.9555 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.8424, allocations: 3.938 kB / 0.9555 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.094e-06/0.8424, allocations: 0 / 0.9555 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.8424, allocations: 1 kB / 0.9555 GB, free: 6.836 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004054/0.8428, allocations: 371.9 kB / 0.9559 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.8429, allocations: 8.906 kB / 0.9559 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.067e-05/0.8429, allocations: 31.81 kB / 0.9559 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.843, allocations: 5.078 kB / 0.9559 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.536e-05/0.8431, allocations: 169.3 kB / 0.9561 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.8431, allocations: 5.156 kB / 0.9561 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.8431, allocations: 1.156 kB / 0.9561 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.8433, allocations: 57.42 kB / 0.9561 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.8433, allocations: 1.062 kB / 0.9561 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-06/0.8433, allocations: 0 / 0.9561 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.8433, allocations: 3.938 kB / 0.9561 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.8435, allocations: 48.97 kB / 0.9562 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002796/0.8438, allocations: 254.2 kB / 0.9564 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.8439, allocations: 44.44 kB / 0.9565 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005782/0.8445, allocations: 464.3 kB / 0.9569 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.8446, allocations: 35.7 kB / 0.957 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.8446, allocations: 0 / 0.957 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003948/0.845, allocations: 105.2 kB / 0.9571 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/0.845, allocations: 55.39 kB / 0.9571 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.56e-05/0.8451, allocations: 105.9 kB / 0.9572 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.335e-06/0.8451, allocations: 25.7 kB / 0.9572 GB, free: 5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.105e-05/0.8451, allocations: 89.56 kB / 0.9573 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.8451, allocations: 5.25 kB / 0.9573 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-06/0.8451, allocations: 0 / 0.9573 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.602e-05/0.8452, allocations: 312 kB / 0.9576 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.222e-05/0.8453, allocations: 21.39 kB / 0.9576 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.296e-05/0.8454, allocations: 22.77 kB / 0.9577 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.109e-05/0.8454, allocations: 26.38 kB / 0.9577 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.8455, allocations: 5.25 kB / 0.9577 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002001/0.8457, allocations: 78.3 kB / 0.9578 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.8457, allocations: 6.188 kB / 0.9578 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.8457, allocations: 0.625 kB / 0.9578 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.8457, allocations: 5.484 kB / 0.9578 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.721e-05/0.8458, allocations: 12.7 kB / 0.9578 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.8458, allocations: 4.031 kB / 0.9578 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.67e-05/0.8459, allocations: 13.14 kB / 0.9578 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.8459, allocations: 6.109 kB / 0.9578 GB, free: 4.488 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 5.715e-05/0.8459, allocations: 112.5 kB / 0.9579 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.846, allocations: 1.688 kB / 0.9579 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002223/0.8462, allocations: 86.34 kB / 0.958 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.8462, allocations: 0 / 0.958 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.8462, allocations: 7.938 kB / 0.958 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.8462, allocations: 5.375 kB / 0.958 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.8464, allocations: 154.2 kB / 0.9582 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.8464, allocations: 1.125 kB / 0.9582 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.588e-05/0.8464, allocations: 11.95 kB / 0.9582 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.8464, allocations: 5.344 kB / 0.9582 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.8465, allocations: 4 kB / 0.9582 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.8465, allocations: 1.406 kB / 0.9582 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.8465, allocations: 0 / 0.9582 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002263/0.8467, allocations: 177.5 kB / 0.9584 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.8467, allocations: 82.05 kB / 0.9584 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.37e-05/0.8467, allocations: 5.031 kB / 0.9584 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.523e-05/0.8468, allocations: 9.891 kB / 0.9584 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.8469, allocations: 1.094 kB / 0.9585 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.8469, allocations: 1.094 kB / 0.9585 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.937e-05/0.8469, allocations: 88.08 kB / 0.9585 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8469, allocations: 4.031 kB / 0.9585 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002362/0.8472, allocations: 20.2 kB / 0.9586 GB, free: 3.734 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004713/0.8476, allocations: 0.7119 MB / 0.9593 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002122/0.8479, allocations: 48.17 kB / 0.9593 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.8479, allocations: 4.094 kB / 0.9593 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.026e-05/0.848, allocations: 28.48 kB / 0.9593 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.8482, allocations: 5.812 kB / 0.9593 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004035/0.8486, allocations: 154.3 kB / 0.9595 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.8487, allocations: 0.6841 MB / 0.9602 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.129e-05/0.8487, allocations: 0 / 0.9602 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.8488, allocations: 9.219 kB / 0.9602 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.8488, allocations: 0 / 0.9602 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01197/0.8608, allocations: 1.315 MB / 0.9614 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.861, allocations: 187.3 kB / 0.9616 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.551, allocations: 0 / 0.9616 GB, free: 1.27 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat does not exist to compare? outputFormat=mat