Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_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.001219/0.001219, allocations: 99.47 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.001654/0.001654, 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 2.382/2.382, allocations: 223.2 MB / 239.9 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.709/4.709, allocations: 409.2 MB / 0.6838 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004233/0.0004234, allocations: 11.98 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.445/1.445, allocations: 146.8 MB / 0.9809 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002812/1.448, allocations: 1.153 MB / 0.982 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001196/1.449, allocations: 366.5 kB / 0.9823 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.649e-05/1.449, allocations: 0 / 0.9823 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.788e-05/1.449, allocations: 3.938 kB / 0.9823 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.618e-05/1.449, allocations: 0 / 0.9823 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006118/1.45, allocations: 71.78 kB / 0.9824 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/1.45, allocations: 19.97 kB / 0.9824 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/1.45, allocations: 0 / 0.9824 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.703e-05/1.45, allocations: 15.92 kB / 0.9824 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.67e-05/1.45, allocations: 4 kB / 0.9824 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.201e-05/1.45, allocations: 0 / 0.9824 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006035/1.451, allocations: 271.6 kB / 0.9827 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.344e-05/1.451, allocations: 11.92 kB / 0.9827 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.615e-05/1.451, allocations: 25.7 kB / 0.9827 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002505/1.451, allocations: 67.88 kB / 0.9828 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.451, allocations: 0 / 0.9828 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.936e-06/1.451, allocations: 0 / 0.9828 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.314e-06/1.451, allocations: 3.938 kB / 0.9828 GB, free: 4.434 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0008333/1.452, allocations: 365.7 kB / 0.9832 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.851e-05/1.452, allocations: 12.03 kB / 0.9832 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.221e-05/1.452, allocations: 30.56 kB / 0.9832 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/1.453, allocations: 7.906 kB / 0.9832 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/1.453, allocations: 167 kB / 0.9834 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/1.453, allocations: 0 / 0.9834 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/1.453, allocations: 4 kB / 0.9834 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002795/1.453, allocations: 61.56 kB / 0.9834 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/1.453, allocations: 4 kB / 0.9834 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/1.453, allocations: 4 kB / 0.9834 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/1.453, allocations: 0 / 0.9834 GB, free: 3.691 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002417/1.454, allocations: 39.97 kB / 0.9835 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006475/1.454, allocations: 257 kB / 0.9837 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/1.454, allocations: 46.45 kB / 0.9838 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001067/1.455, allocations: 469.5 kB / 0.9842 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/1.455, allocations: 34.56 kB / 0.9842 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.683e-06/1.455, allocations: 0 / 0.9842 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0006471/1.456, allocations: 97.64 kB / 0.9843 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/1.456, allocations: 51.41 kB / 0.9844 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/1.456, allocations: 109.8 kB / 0.9845 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/1.456, allocations: 29.7 kB / 0.9845 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.127e-05/1.457, allocations: 80.27 kB / 0.9846 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/1.457, allocations: 7.906 kB / 0.9846 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-06/1.457, allocations: 3.938 kB / 0.9846 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002297/1.457, allocations: 318.8 kB / 0.9849 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/1.457, allocations: 19.97 kB / 0.9849 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/1.457, allocations: 27.98 kB / 0.985 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/1.457, allocations: 23.98 kB / 0.985 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/1.457, allocations: 0 / 0.985 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003352/1.458, allocations: 85.58 kB / 0.9851 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/1.458, allocations: 5.406 kB / 0.9851 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/1.458, allocations: 0 / 0.9851 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/1.458, allocations: 4 kB / 0.9851 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/1.458, allocations: 11.98 kB / 0.9851 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/1.458, allocations: 0 / 0.9851 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/1.458, allocations: 4 kB / 0.9851 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/1.458, allocations: 8.031 kB / 0.9851 GB, free: 1.781 MB / 0.7325 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 0.00018/1.458, allocations: 117.8 kB / 0.9852 GB, free: 1.656 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.792e-05/1.458, allocations: 3.953 kB / 0.9852 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003865/1.459, allocations: 85.19 kB / 0.9853 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/1.459, allocations: 0 / 0.9853 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/1.459, allocations: 3.938 kB / 0.9853 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/1.459, allocations: 0 / 0.9853 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000332/1.459, allocations: 161.7 kB / 0.9854 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/1.459, allocations: 0 / 0.9854 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.487e-05/1.459, allocations: 12 kB / 0.9855 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.814e-06/1.459, allocations: 3.984 kB / 0.9855 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/1.459, allocations: 3.953 kB / 0.9855 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/1.459, allocations: 0 / 0.9855 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/1.459, allocations: 4.031 kB / 0.9855 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/1.46, allocations: 175.5 kB / 0.9856 GB, free: 1.141 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.157e-05/1.46, allocations: 85.05 kB / 0.9857 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/1.46, allocations: 0 / 0.9857 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/1.46, allocations: 12.2 kB / 0.9857 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/1.46, allocations: 3.984 kB / 0.9857 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/1.46, allocations: 7.938 kB / 0.9857 GB, free: 1.016 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.208e-05/1.46, allocations: 83.28 kB / 0.9858 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/1.46, allocations: 0 / 0.9858 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000469/1.461, allocations: 16 kB / 0.9858 GB, free: 0.918 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: 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.001032/1.462, allocations: 0.7241 MB / 0.9865 GB, free: 168 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003386/1.462, allocations: 48 kB / 0.9866 GB, free: 120 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.462, allocations: 0 / 0.9866 GB, free: 120 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/1.462, allocations: 36.03 kB / 0.9866 GB, free: 84 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/1.462, allocations: 3.953 kB / 0.9866 GB, free: 80 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006104/1.463, allocations: 138.4 kB / 0.9868 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/1.464, allocations: 0.6809 MB / 0.9874 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.165e-05/1.464, allocations: 3.938 kB / 0.9874 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.217e-05/1.464, allocations: 15.42 kB / 0.9874 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of SimCode: time 4.31e-07/1.464, allocations: 4.062 kB / 0.9874 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01357/1.477, allocations: 1.325 MB / 0.9887 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/1.478, allocations: 180.3 kB / 0.9889 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.881/4.359, allocations: 2.672 kB / 0.9889 GB, free: 13.74 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat does not exist to compare? outputFormat=mat