Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",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.001571/0.001571, allocations: 100.3 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.001806/0.001806, 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.597/2.597, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.819/4.819, allocations: 409.2 MB / 0.6838 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007629/0.0007632, allocations: 12 kB / 0.8375 GB, free: 6.59 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.381/1.382, allocations: 146.8 MB / 0.9809 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001065/1.383, allocations: 341.6 kB / 0.9812 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000866/1.384, allocations: 321.5 kB / 0.9815 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/1.384, allocations: 0 / 0.9815 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.952e-05/1.384, allocations: 7.938 kB / 0.9815 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.803e-05/1.384, allocations: 4 kB / 0.9815 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004988/1.385, allocations: 82.12 kB / 0.9816 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.624e-05/1.385, allocations: 8 kB / 0.9816 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 6.457e-05/1.385, allocations: 3.984 kB / 0.9816 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.081e-05/1.385, allocations: 11.94 kB / 0.9816 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.554e-05/1.385, allocations: 15.97 kB / 0.9816 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.35e-05/1.385, allocations: 4 kB / 0.9816 GB, free: 5.551 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005381/1.386, allocations: 267.5 kB / 0.9819 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.513e-05/1.386, allocations: 4 kB / 0.9819 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.392e-05/1.386, allocations: 25.7 kB / 0.9819 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002061/1.386, allocations: 63.89 kB / 0.982 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/1.386, allocations: 0 / 0.982 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.224e-06/1.386, allocations: 0 / 0.982 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.689e-06/1.386, allocations: 0 / 0.982 GB, free: 5.191 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005494/1.387, allocations: 357.6 kB / 0.9823 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/1.387, allocations: 8.031 kB / 0.9823 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.603e-05/1.387, allocations: 34.56 kB / 0.9824 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.134e-05/1.387, allocations: 4 kB / 0.9824 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/1.387, allocations: 167 kB / 0.9825 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/1.387, allocations: 8 kB / 0.9825 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/1.387, allocations: 3.906 kB / 0.9825 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/1.387, allocations: 53.64 kB / 0.9826 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/1.387, allocations: 0 / 0.9826 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/1.387, allocations: 0 / 0.9826 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/1.387, allocations: 4 kB / 0.9826 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.272e-05/1.387, allocations: 23.91 kB / 0.9826 GB, free: 4.441 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002633/1.388, allocations: 177.6 kB / 0.9828 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/1.388, allocations: 62.5 kB / 0.9829 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009446/1.389, allocations: 465.4 kB / 0.9833 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/1.389, allocations: 34.56 kB / 0.9833 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/1.389, allocations: 0 / 0.9833 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001873/1.391, allocations: 0.5879 MB / 0.9839 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/1.391, allocations: 51.41 kB / 0.984 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.75e-05/1.391, allocations: 97.8 kB / 0.984 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/1.391, allocations: 29.7 kB / 0.9841 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.389e-05/1.391, allocations: 80.14 kB / 0.9841 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.209e-05/1.391, allocations: 43.39 kB / 0.9842 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/1.391, allocations: 11.94 kB / 0.9842 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000166/1.391, allocations: 318.8 kB / 0.9845 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.206e-05/1.391, allocations: 20 kB / 0.9845 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.899e-05/1.391, allocations: 23.92 kB / 0.9845 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.466e-05/1.391, allocations: 24 kB / 0.9846 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/1.391, allocations: 0 / 0.9846 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002509/1.392, allocations: 93.69 kB / 0.9847 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/1.392, allocations: 11.94 kB / 0.9847 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/1.392, allocations: 0 / 0.9847 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.392, allocations: 0 / 0.9847 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/1.392, allocations: 20 kB / 0.9847 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/1.392, allocations: 4 kB / 0.9847 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.878e-05/1.392, allocations: 4 kB / 0.9847 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/1.392, allocations: 7.984 kB / 0.9847 GB, free: 2.008 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 (13): * Single equations (assignments): 13 * 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.0001291/1.392, allocations: 113.8 kB / 0.9848 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/1.392, allocations: 7.906 kB / 0.9848 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002949/1.392, allocations: 113.6 kB / 0.9849 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/1.393, allocations: 0 / 0.9849 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/1.393, allocations: 0 / 0.9849 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/1.393, allocations: 7.984 kB / 0.9849 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005666/1.393, allocations: 350.5 kB / 0.9853 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.393, allocations: 0 / 0.9853 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/1.393, allocations: 19.95 kB / 0.9853 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/1.393, allocations: 0 / 0.9853 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/1.393, allocations: 8 kB / 0.9853 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/1.393, allocations: 0 / 0.9853 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/1.393, allocations: 3.984 kB / 0.9853 GB, free: 1.324 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004054/1.394, allocations: 226.6 kB / 0.9855 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.928e-05/1.394, allocations: 85.12 kB / 0.9856 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/1.394, allocations: 11.95 kB / 0.9856 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/1.394, allocations: 4 kB / 0.9856 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.03e-05/1.394, allocations: 7.984 kB / 0.9856 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/1.394, allocations: 7.938 kB / 0.9856 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.262e-05/1.394, allocations: 79.28 kB / 0.9857 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2e-07/1.394, allocations: 0 / 0.9857 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004907/1.395, allocations: 43.98 kB / 0.9857 GB, free: 0.8359 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0009814/1.396, allocations: 0.7866 MB / 0.9865 GB, free: 20 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002466/1.396, allocations: 67.91 kB / 0.9866 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.396, allocations: 0 / 0.9866 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.101e-05/1.396, allocations: 31.92 kB / 0.9866 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/1.396, allocations: 12.67 kB / 0.9866 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/1.397, allocations: 0.5117 MB / 0.9871 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/1.398, allocations: 0.6887 MB / 0.9878 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 7.526e-05/1.398, allocations: 12.05 kB / 0.9878 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.909e-05/1.398, allocations: 19.44 kB / 0.9878 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of SimCode: time 3.21e-07/1.398, allocations: 0 / 0.9878 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01909/1.417, allocations: 2.22 MB / 0.99 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002998/1.418, allocations: 220.7 kB / 0.9902 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.871/4.288, allocations: 0 / 0.9902 GB, free: 12.32 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat does not exist to compare? outputFormat=mat