Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 98.83 kB / 16.35 MB, free: 5.824 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.001597/0.001597, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.304/1.304, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.412/2.412, allocations: 437.1 MB / 0.7112 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 64.81 kB / 0.8707 GB, free: 1.453 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2714, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002604/0.2741, allocations: 1.454 MB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007224/0.2748, allocations: 379.5 kB / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.209e-05/0.2749, allocations: 0 / 1.021 GB, free: 8.012 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.586e-05/0.2749, allocations: 3.984 kB / 1.021 GB, free: 8.008 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.871e-05/0.275, allocations: 7.938 kB / 1.021 GB, free: 8 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.2754, allocations: 118.9 kB / 1.021 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.61e-05/0.2755, allocations: 23.92 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.255e-05/0.2756, allocations: 4 kB / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.784e-05/0.2756, allocations: 11.94 kB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.715e-05/0.2757, allocations: 15.92 kB / 1.021 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.2757, allocations: 0 / 1.021 GB, free: 7.832 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003519/0.276, allocations: 287.6 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.2761, allocations: 0 / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.231e-05/0.2761, allocations: 11.88 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.2763, allocations: 103.8 kB / 1.021 GB, free: 7.438 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2763, allocations: 8 kB / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2763, allocations: 0 / 1.021 GB, free: 7.43 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.2763, allocations: 0 / 1.021 GB, free: 7.43 MB / 0.795 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.000438/0.2768, allocations: 371.3 kB / 1.021 GB, free: 7.016 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.2768, allocations: 8.625 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.2768, allocations: 0.9375 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.277, allocations: 168.4 kB / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-06/0.277, allocations: 384 / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-06/0.277, allocations: 384 / 1.022 GB, free: 6.805 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001625/0.2772, allocations: 55.77 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.2772, allocations: 192 / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.2772, allocations: 7.938 kB / 1.022 GB, free: 6.738 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.2772, allocations: 0 / 1.022 GB, free: 6.738 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.2774, allocations: 43.83 kB / 1.022 GB, free: 6.695 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003068/0.2777, allocations: 252.9 kB / 1.022 GB, free: 6.398 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.2778, allocations: 46.48 kB / 1.022 GB, free: 6.344 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.394e-05/0.2779, allocations: 20.91 kB / 1.022 GB, free: 6.32 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006723/0.2786, allocations: 465.4 kB / 1.022 GB, free: 5.773 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.2786, allocations: 38.56 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 3.717e-06/0.2786, allocations: 3.984 kB / 1.023 GB, free: 5.723 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003459/0.279, allocations: 85.58 kB / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.279, allocations: 55.53 kB / 1.023 GB, free: 5.566 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.448e-05/0.2791, allocations: 101.9 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.2792, allocations: 29.69 kB / 1.023 GB, free: 5.422 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 3.849e-05/0.2792, allocations: 80.14 kB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.2792, allocations: 15.84 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.2793, allocations: 9.719 kB / 1.023 GB, free: 5.309 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.938e-05/0.2794, allocations: 310.8 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.232e-05/0.2795, allocations: 27.97 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.415e-05/0.2795, allocations: 11.98 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.2797, allocations: 44.77 kB / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2797, allocations: 0 / 1.023 GB, free: 4.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001981/0.2799, allocations: 73.66 kB / 1.023 GB, free: 4.832 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.2799, allocations: 4 kB / 1.023 GB, free: 4.828 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.2799, allocations: 4 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.2799, allocations: 0 / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.28, allocations: 7.984 kB / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.28, allocations: 0 / 1.023 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.281e-05/0.2801, allocations: 4 kB / 1.023 GB, free: 4.812 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.902e-06/0.2801, allocations: 3.984 kB / 1.023 GB, free: 4.809 MB / 0.795 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 6.376e-05/0.2802, allocations: 117.8 kB / 1.023 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.892e-05/0.2802, allocations: 7.938 kB / 1.023 GB, free: 4.676 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/0.2804, allocations: 77.12 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2804, allocations: 0 / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2804, allocations: 0 / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2804, allocations: 4 kB / 1.024 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.2806, allocations: 161.6 kB / 1.024 GB, free: 4.383 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2806, allocations: 3.938 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.2807, allocations: 12.02 kB / 1.024 GB, free: 4.367 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.2807, allocations: 4 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.2807, allocations: 0 / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2807, allocations: 0 / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2807, allocations: 0 / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.2809, allocations: 167.4 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.281, allocations: 77.11 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.281, allocations: 8.031 kB / 1.024 GB, free: 4.082 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.509e-05/0.2811, allocations: 8.234 kB / 1.024 GB, free: 4.074 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.2811, allocations: 0 / 1.024 GB, free: 4.074 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2811, allocations: 4 kB / 1.024 GB, free: 4.07 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.649e-05/0.2812, allocations: 87.22 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2812, allocations: 0 / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002338/0.2814, allocations: 15.98 kB / 1.024 GB, free: 3.969 MB / 0.795 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.0001782/0.2816, allocations: 115.2 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002074/0.2818, allocations: 35.95 kB / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2818, allocations: 0 / 1.024 GB, free: 3.809 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.27e-05/0.2819, allocations: 23.92 kB / 1.024 GB, free: 3.785 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.2822, allocations: 15.86 kB / 1.024 GB, free: 3.77 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002951/0.2825, allocations: 113.7 kB / 1.024 GB, free: 3.633 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.2828, allocations: 0.6768 MB / 1.025 GB, free: 2.93 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.212e-05/0.2828, allocations: 0 / 1.025 GB, free: 2.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.96e-05/0.2828, allocations: 11.44 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.2828, allocations: 0 / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of Templates: time 0.002809/0.2856, allocations: 0.7082 MB / 1.026 GB, free: 2.215 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches