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.0009652/0.0009652, allocations: 91.06 kB / 15.06 MB, free: 1.094 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.00121/0.00121, allocations: 172.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.449/1.449, allocations: 223.3 MB / 240 MB, free: 5.434 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.571/2.571, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 15.97 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8874/0.8878, allocations: 142.3 MB / 0.9538 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001593/0.8894, allocations: 1.155 MB / 0.955 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006869/0.8901, allocations: 350.9 kB / 0.9553 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.8902, allocations: 1.031 kB / 0.9553 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.469e-05/0.8902, allocations: 3.938 kB / 0.9553 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.285e-05/0.8903, allocations: 4.984 kB / 0.9553 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.8906, allocations: 75.73 kB / 0.9554 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.726e-05/0.8907, allocations: 27.56 kB / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.705e-05/0.8908, allocations: 3.281 kB / 0.9554 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.417e-05/0.8908, allocations: 10.52 kB / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.006e-05/0.8909, allocations: 15.73 kB / 0.9554 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.8909, allocations: 1.344 kB / 0.9554 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003588/0.8913, allocations: 266.2 kB / 0.9557 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.8913, allocations: 1.5 kB / 0.9557 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.8913, allocations: 34.89 kB / 0.9557 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.8915, allocations: 70.34 kB / 0.9558 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.8915, allocations: 0 / 0.9558 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.335e-06/0.8915, allocations: 0 / 0.9558 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.8915, allocations: 0 / 0.9558 GB, free: 6.672 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.0004385/0.8919, allocations: 357.2 kB / 0.9561 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.892, allocations: 8.312 kB / 0.9561 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.892, allocations: 43.86 kB / 0.9562 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.8921, allocations: 5.203 kB / 0.9562 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.8922, allocations: 173 kB / 0.9564 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.8922, allocations: 0.9688 kB / 0.9564 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.778e-06/0.8923, allocations: 1.406 kB / 0.9564 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.8924, allocations: 54.08 kB / 0.9564 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.8925, allocations: 0 / 0.9564 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.8925, allocations: 1.062 kB / 0.9564 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.8925, allocations: 4 kB / 0.9564 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.8927, allocations: 49.34 kB / 0.9565 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003204/0.893, allocations: 250.4 kB / 0.9567 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.8931, allocations: 51.48 kB / 0.9568 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.256e-05/0.8932, allocations: 24.97 kB / 0.9568 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005676/0.8938, allocations: 471 kB / 0.9572 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.8938, allocations: 31.94 kB / 0.9573 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.163e-06/0.8938, allocations: 0 / 0.9573 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003963/0.8942, allocations: 104.5 kB / 0.9574 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.8943, allocations: 56.75 kB / 0.9574 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.352e-05/0.8944, allocations: 108.8 kB / 0.9575 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.8944, allocations: 25.7 kB / 0.9575 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.634e-05/0.8944, allocations: 89.56 kB / 0.9576 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.8945, allocations: 5.062 kB / 0.9576 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.8945, allocations: 0 / 0.9576 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.081e-05/0.8945, allocations: 311.9 kB / 0.9579 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.117e-05/0.8946, allocations: 22.02 kB / 0.9579 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.985e-05/0.8947, allocations: 30.69 kB / 0.958 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.913e-05/0.8948, allocations: 23.05 kB / 0.958 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.8948, allocations: 0 / 0.958 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001947/0.895, allocations: 75.45 kB / 0.9581 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.895, allocations: 9.484 kB / 0.9581 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.895, allocations: 0 / 0.9581 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.8951, allocations: 7.938 kB / 0.9581 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.8952, allocations: 12.78 kB / 0.9581 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.8952, allocations: 5.594 kB / 0.9581 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.266e-05/0.8952, allocations: 13.23 kB / 0.9581 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.8952, allocations: 1.188 kB / 0.9581 GB, free: 4.309 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 6.45e-05/0.8953, allocations: 111 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.8953, allocations: 2.188 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002308/0.8956, allocations: 89.73 kB / 0.9583 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.8956, allocations: 1.281 kB / 0.9583 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.8956, allocations: 3.953 kB / 0.9583 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.8956, allocations: 0 / 0.9583 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.8957, allocations: 158.2 kB / 0.9585 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8957, allocations: 0 / 0.9585 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.334e-05/0.8958, allocations: 13.61 kB / 0.9585 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.8958, allocations: 1.062 kB / 0.9585 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.8958, allocations: 0 / 0.9585 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.8958, allocations: 4.969 kB / 0.9585 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8958, allocations: 0 / 0.9585 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.8961, allocations: 177.8 kB / 0.9587 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.371e-05/0.8961, allocations: 82.02 kB / 0.9587 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.8961, allocations: 5.078 kB / 0.9587 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.924e-05/0.8962, allocations: 6.562 kB / 0.9587 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.8962, allocations: 1 kB / 0.9587 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.8962, allocations: 5.109 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.945e-05/0.8963, allocations: 91.55 kB / 0.9588 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8963, allocations: 4 kB / 0.9588 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002297/0.8965, allocations: 16.97 kB / 0.9589 GB, free: 3.559 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.0004934/0.897, allocations: 0.7157 MB / 0.9596 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002028/0.8972, allocations: 43.25 kB / 0.9596 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8972, allocations: 8.031 kB / 0.9596 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.834e-05/0.8973, allocations: 25.83 kB / 0.9596 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.8976, allocations: 5.984 kB / 0.9596 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004333/0.898, allocations: 154.6 kB / 0.9598 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.8982, allocations: 0.6808 MB / 0.9605 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.472e-05/0.8982, allocations: 1.844 kB / 0.9605 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.8983, allocations: 9.562 kB / 0.9605 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8983, allocations: 0 / 0.9605 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01368/0.912, allocations: 1.329 MB / 0.9618 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.9122, allocations: 187.1 kB / 0.9619 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.61, allocations: 3.938 kB / 0.9619 GB, free: 1.09 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