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.0008461/0.0008461, allocations: 91.61 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.0009076/0.0009078, 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.424/1.424, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.579/2.579, allocations: 409.4 MB / 0.684 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003602, allocations: 15.98 kB / 0.8378 GB, free: 6.477 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8354/0.8358, allocations: 146.8 MB / 0.9811 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001554/0.8374, allocations: 1.149 MB / 0.9823 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006814/0.8381, allocations: 370.3 kB / 0.9826 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.293e-05/0.8382, allocations: 0 / 0.9826 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.837e-05/0.8382, allocations: 3.938 kB / 0.9826 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.964e-05/0.8383, allocations: 0 / 0.9826 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.8386, allocations: 78.41 kB / 0.9827 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.926e-05/0.8387, allocations: 19.92 kB / 0.9827 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.664e-05/0.8388, allocations: 4 kB / 0.9827 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.306e-05/0.8388, allocations: 12 kB / 0.9827 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.8389, allocations: 11.92 kB / 0.9827 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.8389, allocations: 0 / 0.9827 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000358/0.8392, allocations: 275.6 kB / 0.983 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.8393, allocations: 3.984 kB / 0.983 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.41e-05/0.8393, allocations: 25.7 kB / 0.983 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.8394, allocations: 71.86 kB / 0.9831 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.8394, allocations: 0 / 0.9831 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8394, allocations: 0 / 0.9831 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.477e-06/0.8395, allocations: 0 / 0.9831 GB, free: 4.219 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.0004672/0.8399, allocations: 369.6 kB / 0.9834 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.84, allocations: 8.031 kB / 0.9835 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.84, allocations: 34.5 kB / 0.9835 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.8401, allocations: 7.906 kB / 0.9835 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.8402, allocations: 167 kB / 0.9837 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.8402, allocations: 4 kB / 0.9837 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.8402, allocations: 0 / 0.9837 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001806/0.8404, allocations: 65.61 kB / 0.9837 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.8404, allocations: 0 / 0.9837 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.8404, allocations: 0 / 0.9837 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.8405, allocations: 3.938 kB / 0.9837 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001606/0.8406, allocations: 47.97 kB / 0.9838 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003233/0.8409, allocations: 252.9 kB / 0.984 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.8411, allocations: 42.52 kB / 0.9841 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.575e-05/0.8412, allocations: 36.89 kB / 0.9841 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006077/0.8418, allocations: 461.5 kB / 0.9845 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.8418, allocations: 30.56 kB / 0.9846 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.8419, allocations: 0 / 0.9846 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0003791/0.8422, allocations: 105.7 kB / 0.9847 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.8423, allocations: 51.41 kB / 0.9847 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.792e-05/0.8424, allocations: 109.8 kB / 0.9848 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.8424, allocations: 29.64 kB / 0.9848 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.8425, allocations: 84.14 kB / 0.9849 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.8425, allocations: 3.906 kB / 0.9849 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-06/0.8425, allocations: 0 / 0.9849 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.8427, allocations: 326.9 kB / 0.9852 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.8427, allocations: 15.98 kB / 0.9852 GB, free: 1.699 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.582e-05/0.8428, allocations: 23.98 kB / 0.9853 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.369e-05/0.8429, allocations: 24.05 kB / 0.9853 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.8429, allocations: 0 / 0.9853 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002296/0.8432, allocations: 89.45 kB / 0.9854 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.8432, allocations: 4 kB / 0.9854 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.8432, allocations: 4.031 kB / 0.9854 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.8432, allocations: 4 kB / 0.9854 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.893e-05/0.8433, allocations: 11.98 kB / 0.9854 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.8434, allocations: 0 / 0.9854 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.571e-05/0.8434, allocations: 7.984 kB / 0.9854 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.8434, allocations: 4 kB / 0.9854 GB, free: 1.523 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 9.477e-05/0.8435, allocations: 105.8 kB / 0.9855 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.8436, allocations: 7.953 kB / 0.9855 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.8438, allocations: 85.19 kB / 0.9856 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.8438, allocations: 0 / 0.9856 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.8438, allocations: 3.938 kB / 0.9856 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.8439, allocations: 4.031 kB / 0.9856 GB, free: 1.305 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.8441, allocations: 157.7 kB / 0.9858 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.8441, allocations: 0 / 0.9858 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.642e-05/0.8441, allocations: 15.98 kB / 0.9858 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.8441, allocations: 0 / 0.9858 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.8441, allocations: 3.953 kB / 0.9858 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.8442, allocations: 0 / 0.9858 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.8442, allocations: 0 / 0.9858 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002779/0.8444, allocations: 175.5 kB / 0.9859 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.8445, allocations: 84.95 kB / 0.986 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.8445, allocations: 0 / 0.986 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.784e-05/0.8446, allocations: 23.97 kB / 0.9861 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.8447, allocations: 0 / 0.9861 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.8447, allocations: 0 / 0.9861 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.155e-05/0.8447, allocations: 91.45 kB / 0.9861 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.214e-06/0.8448, allocations: 0 / 0.9861 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002502/0.845, allocations: 23.88 kB / 0.9862 GB, free: 0.6562 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.0007832/0.8458, allocations: 0.7164 MB / 0.9869 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002412/0.8461, allocations: 51.98 kB / 0.9869 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8461, allocations: 0 / 0.9869 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.637e-05/0.8462, allocations: 31.92 kB / 0.9869 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.8465, allocations: 3.953 kB / 0.9869 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004789/0.847, allocations: 146.4 kB / 0.9871 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.8473, allocations: 0.677 MB / 0.9877 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.086e-05/0.8473, allocations: 4 kB / 0.9878 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.8474, allocations: 11.44 kB / 0.9878 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.8474, allocations: 0 / 0.9878 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0114/0.8588, allocations: 1.349 MB / 0.9891 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.859, allocations: 185.6 kB / 0.9893 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.692, allocations: 3.625 kB / 0.9893 GB, free: 13.47 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