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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001196/0.001196, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.009142/0.009142, allocations: 172.4 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.531/2.531, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003425, allocations: 11.25 kB / 0.9029 GB, free: 36.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2831, allocations: 159.6 MB / 1.059 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001294/0.2844, allocations: 1.171 MB / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006348/0.2851, allocations: 402.9 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.819e-05/0.2851, allocations: 4 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.312e-05/0.2851, allocations: 7.875 kB / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.754e-05/0.2852, allocations: 0 / 1.06 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.2855, allocations: 75.84 kB / 1.06 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.837e-05/0.2855, allocations: 23.92 kB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.821e-05/0.2856, allocations: 7.984 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.31e-05/0.2857, allocations: 11.92 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.567e-05/0.2857, allocations: 15.94 kB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.999e-06/0.2857, allocations: 0 / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003224/0.2861, allocations: 275.6 kB / 1.061 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.2861, allocations: 4 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.2861, allocations: 37.62 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.2863, allocations: 103.8 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2863, allocations: 7.922 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2863, allocations: 0 / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.2863, allocations: 0 / 1.061 GB, free: 2.738 MB / 0.8106 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.0003717/0.2867, allocations: 367.8 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.2867, allocations: 11.97 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.2868, allocations: 30.75 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.2868, allocations: 8.844 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.88e-05/0.2869, allocations: 164.4 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.674e-06/0.2869, allocations: 384 / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-06/0.2869, allocations: 4.375 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.2871, allocations: 58.23 kB / 1.061 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.2871, allocations: 7.922 kB / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.2871, allocations: 0 / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2871, allocations: 0 / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.2873, allocations: 47.91 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002565/0.2876, allocations: 256.9 kB / 1.062 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.2877, allocations: 42.5 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.175e-05/0.2878, allocations: 32.91 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005881/0.2884, allocations: 465.5 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.2884, allocations: 30.56 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2884, allocations: 0 / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000357/0.2888, allocations: 109.6 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.2888, allocations: 51.41 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.846e-05/0.2889, allocations: 105.8 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.2889, allocations: 25.7 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.489e-05/0.289, allocations: 84.14 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.289, allocations: 11.84 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.289, allocations: 9.719 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.2891, allocations: 318.9 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.511e-05/0.2892, allocations: 23.98 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.41e-05/0.2893, allocations: 23.92 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.2894, allocations: 56.81 kB / 1.063 GB, free: 120 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2894, allocations: 7.938 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002072/0.2896, allocations: 73.67 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.2897, allocations: 5.719 kB / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2897, allocations: 0 / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.2897, allocations: 0 / 1.063 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.324e-05/0.2898, allocations: 15.98 kB / 1.063 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.2898, allocations: 0 / 1.063 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.73e-05/0.2898, allocations: 7.984 kB / 1.063 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.2898, allocations: 4.031 kB / 1.063 GB, free: 0 / 0.8106 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.892e-05/0.2899, allocations: 117.8 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.29, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.2902, allocations: 92.98 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2902, allocations: 4.031 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2902, allocations: 0 / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2902, allocations: 3.984 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.2903, allocations: 157.9 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.2904, allocations: 4 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.836e-05/0.2904, allocations: 19.92 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2904, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.2904, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2904, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2904, allocations: 4 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.2907, allocations: 179.4 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.59e-05/0.2907, allocations: 77.11 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.005e-05/0.2907, allocations: 4.031 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.366e-05/0.2908, allocations: 11.98 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.503e-05/0.2908, allocations: 0 / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.2909, allocations: 0 / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.508e-05/0.2909, allocations: 87.27 kB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2909, allocations: 4 kB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002183/0.2911, allocations: 12 kB / 1.064 GB, free: 15.14 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004856/0.2916, allocations: 0.7201 MB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001922/0.2918, allocations: 51.92 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2918, allocations: 4 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.775e-05/0.2919, allocations: 28.05 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.2922, allocations: 0 / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.2925, allocations: 154.3 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.2927, allocations: 0.6809 MB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.974e-05/0.2927, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.536e-05/0.2927, allocations: 11.42 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of SimCode: time 2.194e-06/0.2927, allocations: 4.062 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.555/2.847, allocations: 1.349 MB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/2.847, allocations: 205.3 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.415/5.263, allocations: 0 / 1.067 GB, free: 11.92 MB / 0.8262 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/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) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches