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.001201/0.0012, allocations: 99.62 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.001292/0.001292, allocations: 177.3 kB / 15.95 MB, free: 216 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.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.848/2.848, allocations: 436.5 MB / 0.7104 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 12 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8524/0.8527, allocations: 153.7 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003768/0.8566, allocations: 2.603 MB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002984/0.8596, allocations: 1.743 MB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.8598, allocations: 7.938 kB / 1.025 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.8601, allocations: 31.83 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005806/0.8607, allocations: 131.5 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006662/0.8613, allocations: 174.5 kB / 1.025 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003913/0.8617, allocations: 179.6 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006858/0.8624, allocations: 311.9 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.8627, allocations: 91.69 kB / 1.026 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.863, allocations: 103.6 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.292e-05/0.863, allocations: 12 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005812/0.8636, allocations: 243.6 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.185e-05/0.8637, allocations: 67.81 kB / 1.026 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.825e-05/0.8638, allocations: 65.58 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005836/0.8644, allocations: 363.1 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.8644, allocations: 0 / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8644, allocations: 4 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.8644, allocations: 0 / 1.027 GB, free: 10.93 MB / 0.7794 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.0009789/0.8654, allocations: 0.5183 MB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.8655, allocations: 15.98 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009762/0.8665, allocations: 123.6 kB / 1.027 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.8669, allocations: 262.5 kB / 1.028 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.8669, allocations: 20.33 kB / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.867, allocations: 20 kB / 1.028 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.8676, allocations: 345.1 kB / 1.028 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.8676, allocations: 0 / 1.028 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.8677, allocations: 12 kB / 1.028 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.642e-05/0.8677, allocations: 28.41 kB / 1.028 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005075/0.8682, allocations: 293.5 kB / 1.028 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002454/0.8707, allocations: 1.749 MB / 1.03 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004835/0.8712, allocations: 310.2 kB / 1.03 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001152/0.8713, allocations: 93.03 kB / 1.03 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.8714, allocations: 42.52 kB / 1.03 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.774e-06/0.8714, allocations: 0 / 1.03 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002646/0.874, allocations: 0.9747 MB / 1.031 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.8741, allocations: 81.23 kB / 1.031 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.8744, allocations: 219.6 kB / 1.032 GB, free: 5.453 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.8744, allocations: 25.7 kB / 1.032 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.8745, allocations: 172.1 kB / 1.032 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.191e-05/0.8746, allocations: 78.95 kB / 1.032 GB, free: 5.168 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.8746, allocations: 4 kB / 1.032 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.8748, allocations: 334.8 kB / 1.032 GB, free: 4.828 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.875, allocations: 127.9 kB / 1.032 GB, free: 4.703 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.8752, allocations: 201.4 kB / 1.033 GB, free: 4.473 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.8755, allocations: 163.9 kB / 1.033 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.8755, allocations: 0 / 1.033 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008938/0.8764, allocations: 0.5149 MB / 1.033 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.8764, allocations: 4 kB / 1.033 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.8764, allocations: 4 kB / 1.033 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/0.8769, allocations: 151.6 kB / 1.033 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002914/0.8773, allocations: 67.89 kB / 1.033 GB, free: 3.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003772/0.881, allocations: 3.981 MB / 1.037 GB, free: 15.25 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.8813, allocations: 23.92 kB / 1.037 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.8814, allocations: 19.98 kB / 1.037 GB, free: 15.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002386/0.8816, allocations: 161.7 kB / 1.038 GB, free: 15.04 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.8818, allocations: 19.72 kB / 1.038 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009821/0.8828, allocations: 470.8 kB / 1.038 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.8828, allocations: 4.047 kB / 1.038 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.8828, allocations: 7.938 kB / 1.038 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.8828, allocations: 0 / 1.038 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.8847, allocations: 1.013 MB / 1.039 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.8847, allocations: 0 / 1.039 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.8849, allocations: 35.92 kB / 1.039 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004839/0.8854, allocations: 159.5 kB / 1.039 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.8855, allocations: 8 kB / 1.039 GB, free: 13.22 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005073/0.8905, allocations: 3.965 MB / 1.043 GB, free: 8.934 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.8906, allocations: 7.969 kB / 1.043 GB, free: 8.926 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.892, allocations: 0.7136 MB / 1.044 GB, free: 8.105 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003369/0.8923, allocations: 140.7 kB / 1.044 GB, free: 7.949 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.8924, allocations: 11.98 kB / 1.044 GB, free: 7.938 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.8927, allocations: 19.98 kB / 1.044 GB, free: 7.918 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.8927, allocations: 23.91 kB / 1.044 GB, free: 7.895 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.8928, allocations: 12 kB / 1.044 GB, free: 7.883 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002514/0.893, allocations: 153.5 kB / 1.044 GB, free: 7.734 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.893, allocations: 4 kB / 1.044 GB, free: 7.73 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006373/0.8937, allocations: 95.98 kB / 1.044 GB, free: 7.637 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003694/0.8941, allocations: 139.1 kB / 1.044 GB, free: 7.492 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001149/0.8952, allocations: 0.5637 MB / 1.045 GB, free: 6.902 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.8952, allocations: 0 / 1.045 GB, free: 6.902 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006244/0.8959, allocations: 398.1 kB / 1.045 GB, free: 6.488 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.8964, allocations: 39.98 kB / 1.045 GB, free: 6.449 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001727/0.8981, allocations: 0.7215 MB / 1.046 GB, free: 5.68 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007126/0.8988, allocations: 0.7872 MB / 1.047 GB, free: 4.867 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002135/0.8991, allocations: 58.23 kB / 1.047 GB, free: 4.805 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.251e-05/0.8991, allocations: 19.44 kB / 1.047 GB, free: 4.785 MB / 0.795 GB Notification: Performance of SimCode: time 1.062e-06/0.8991, allocations: 4 kB / 1.047 GB, free: 4.781 MB / 0.795 GB Notification: Performance of Templates: time 0.01103/0.9102, allocations: 3.867 MB / 1.051 GB, free: 0.9453 MB / 0.795 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","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches