Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008857/0.0008857, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009752/0.0009752, allocations: 176.3 kB / 16.92 MB, free: 6.652 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.297/1.297, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.565/2.565, allocations: 443.2 MB / 0.7181 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003478, allocations: 10.86 kB / 0.8801 GB, free: 41.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2661, allocations: 155.1 MB / 1.032 GB, free: 4.555 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003417/0.2695, allocations: 2.765 MB / 1.034 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002741/0.2723, allocations: 1.902 MB / 1.036 GB, free: 15.86 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.435e-05/0.2724, allocations: 4 kB / 1.036 GB, free: 15.86 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.2726, allocations: 39.7 kB / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004316/0.273, allocations: 187.2 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000467/0.2735, allocations: 206.5 kB / 1.037 GB, free: 15.44 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.2739, allocations: 450.7 kB / 1.037 GB, free: 15 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005526/0.2745, allocations: 329.9 kB / 1.037 GB, free: 14.65 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2746, allocations: 107.5 kB / 1.037 GB, free: 14.54 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.2749, allocations: 143.5 kB / 1.038 GB, free: 14.4 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.2749, allocations: 12 kB / 1.038 GB, free: 14.39 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006443/0.2756, allocations: 475.1 kB / 1.038 GB, free: 13.93 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.317e-05/0.2757, allocations: 79.73 kB / 1.038 GB, free: 13.85 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.2758, allocations: 133.2 kB / 1.038 GB, free: 13.71 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003899/0.2762, allocations: 367.1 kB / 1.039 GB, free: 13.35 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2762, allocations: 7.938 kB / 1.039 GB, free: 13.34 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2762, allocations: 0 / 1.039 GB, free: 13.34 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2762, allocations: 0 / 1.039 GB, free: 13.34 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.00076/0.277, allocations: 0.5185 MB / 1.039 GB, free: 12.77 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.277, allocations: 12.03 kB / 1.039 GB, free: 12.76 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007621/0.2778, allocations: 108.5 kB / 1.039 GB, free: 12.66 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003111/0.2781, allocations: 255.9 kB / 1.039 GB, free: 12.37 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.2782, allocations: 16.81 kB / 1.039 GB, free: 12.35 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.2782, allocations: 20.36 kB / 1.039 GB, free: 12.33 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.2787, allocations: 353.3 kB / 1.04 GB, free: 11.97 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.2787, allocations: 3.984 kB / 1.04 GB, free: 11.96 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.2788, allocations: 11.98 kB / 1.04 GB, free: 11.95 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.913e-05/0.2788, allocations: 24.42 kB / 1.04 GB, free: 11.93 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.2793, allocations: 293.5 kB / 1.04 GB, free: 11.64 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.2813, allocations: 1.741 MB / 1.042 GB, free: 9.734 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004536/0.2817, allocations: 322.1 kB / 1.042 GB, free: 9.383 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.2819, allocations: 109.9 kB / 1.042 GB, free: 9.27 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.282, allocations: 89.03 kB / 1.042 GB, free: 9.164 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.2821, allocations: 38.56 kB / 1.042 GB, free: 9.117 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.2821, allocations: 0 / 1.042 GB, free: 9.117 MB / 0.795 GB Notification: Performance of matching and sorting (n=23): time 0.00237/0.2844, allocations: 0.9713 MB / 1.043 GB, free: 8.109 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.2845, allocations: 88.98 kB / 1.043 GB, free: 8.004 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.2847, allocations: 211.8 kB / 1.044 GB, free: 7.785 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.2847, allocations: 25.7 kB / 1.044 GB, free: 7.754 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.2849, allocations: 172.2 kB / 1.044 GB, free: 7.578 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.405e-05/0.2849, allocations: 86.73 kB / 1.044 GB, free: 7.492 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.285, allocations: 29.7 kB / 1.044 GB, free: 7.457 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.2851, allocations: 330.8 kB / 1.044 GB, free: 7.125 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.2853, allocations: 135.9 kB / 1.044 GB, free: 6.992 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002449/0.2855, allocations: 206.5 kB / 1.045 GB, free: 6.758 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004536/0.286, allocations: 367.8 kB / 1.045 GB, free: 6.367 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.286, allocations: 0 / 1.045 GB, free: 6.367 MB / 0.795 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008358/0.2869, allocations: 0.5104 MB / 1.045 GB, free: 5.84 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.2869, allocations: 9.875 kB / 1.045 GB, free: 5.832 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2869, allocations: 4 kB / 1.045 GB, free: 5.828 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004855/0.2874, allocations: 147.3 kB / 1.046 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.2876, allocations: 59.91 kB / 1.046 GB, free: 5.613 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002771/0.2904, allocations: 3.981 MB / 1.05 GB, free: 1.312 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.2906, allocations: 15.98 kB / 1.05 GB, free: 1.297 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.2906, allocations: 16 kB / 1.05 GB, free: 1.281 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001583/0.2908, allocations: 167.1 kB / 1.05 GB, free: 1.109 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.2909, allocations: 23.72 kB / 1.05 GB, free: 1.086 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008127/0.2917, allocations: 462.5 kB / 1.05 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2917, allocations: 8 kB / 1.05 GB, free: 0.6133 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2917, allocations: 4 kB / 1.05 GB, free: 0.6094 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.2917, allocations: 4 kB / 1.05 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.2932, allocations: 1.011 MB / 1.051 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.2932, allocations: 4 kB / 1.051 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.2934, allocations: 27.98 kB / 1.051 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004213/0.2938, allocations: 155.5 kB / 1.051 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.2938, allocations: 7.938 kB / 1.051 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002759/0.2966, allocations: 3.953 MB / 1.055 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2966, allocations: 3.938 kB / 1.055 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000743/0.2974, allocations: 0.6249 MB / 1.056 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.2975, allocations: 124.8 kB / 1.056 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.2975, allocations: 12 kB / 1.056 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.2977, allocations: 15.98 kB / 1.056 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.849e-05/0.2978, allocations: 31.91 kB / 1.056 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.2978, allocations: 8 kB / 1.056 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001431/0.298, allocations: 168 kB / 1.056 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.298, allocations: 0 / 1.056 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004773/0.2985, allocations: 95.94 kB / 1.056 GB, free: 9.883 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001927/0.2987, allocations: 140 kB / 1.056 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008383/0.2995, allocations: 0.5756 MB / 1.057 GB, free: 9.137 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2995, allocations: 0 / 1.057 GB, free: 9.137 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000469/0.3, allocations: 398.5 kB / 1.057 GB, free: 8.723 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005202/0.3005, allocations: 35.98 kB / 1.057 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.3016, allocations: 0.8002 MB / 1.058 GB, free: 7.836 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.3019, allocations: 0.7947 MB / 1.059 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.374e-05/0.302, allocations: 19.44 kB / 1.059 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.302, allocations: 0 / 1.059 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of Templates: time 0.009624/0.3116, allocations: 7.584 MB / 1.066 GB, free: 15.41 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches