Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.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_9_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_9_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.001036/0.001036, allocations: 98.77 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.001051/0.001051, 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 1.465/1.465, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.524/2.524, allocations: 390.3 MB / 0.6653 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003328, allocations: 12 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8981/0.8985, allocations: 142.3 MB / 0.9535 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003051/0.9016, allocations: 2.606 MB / 0.956 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00229/0.9039, allocations: 1.736 MB / 0.9577 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.904, allocations: 7.094 kB / 0.9577 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.9042, allocations: 43.06 kB / 0.9578 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003875/0.9046, allocations: 125.5 kB / 0.9579 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.905, allocations: 172.2 kB / 0.9581 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.9053, allocations: 181.9 kB / 0.9582 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005196/0.9058, allocations: 315.7 kB / 0.9585 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.9059, allocations: 95.55 kB / 0.9586 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.9062, allocations: 96.17 kB / 0.9587 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.9062, allocations: 10.78 kB / 0.9587 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000388/0.9066, allocations: 248.2 kB / 0.959 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.242e-05/0.9067, allocations: 71.3 kB / 0.959 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.711e-05/0.9067, allocations: 66.2 kB / 0.9591 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003715/0.9071, allocations: 353.8 kB / 0.9594 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.9071, allocations: 7.938 kB / 0.9595 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.764e-06/0.9071, allocations: 0 / 0.9595 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.9071, allocations: 0 / 0.9595 GB, free: 3.586 MB / 0.7169 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.0006906/0.9078, allocations: 0.5116 MB / 0.96 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.9079, allocations: 12.78 kB / 0.96 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008032/0.9087, allocations: 128.5 kB / 0.9601 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002885/0.909, allocations: 258.5 kB / 0.9603 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.909, allocations: 20.3 kB / 0.9604 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.9091, allocations: 19.94 kB / 0.9604 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.9095, allocations: 348.2 kB / 0.9607 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.9096, allocations: 0 / 0.9607 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.022e-05/0.9096, allocations: 14.98 kB / 0.9607 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.855e-05/0.9097, allocations: 25.86 kB / 0.9607 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.9101, allocations: 288.2 kB / 0.961 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.9119, allocations: 1.744 MB / 0.9627 GB, free: 0.7461 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004394/0.9124, allocations: 318 kB / 0.963 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.539e-05/0.9125, allocations: 94.8 kB / 0.9631 GB, free: 404 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.9125, allocations: 37.06 kB / 0.9632 GB, free: 360 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.9125, allocations: 0 / 0.9632 GB, free: 360 kB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.002505/0.915, allocations: 0.972 MB / 0.9641 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.9151, allocations: 80.45 kB / 0.9642 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.9154, allocations: 221.8 kB / 0.9644 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.9154, allocations: 31.14 kB / 0.9644 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.9155, allocations: 169.6 kB / 0.9646 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.672e-05/0.9156, allocations: 80.62 kB / 0.9647 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.721e-05/0.9156, allocations: 5.094 kB / 0.9647 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.9158, allocations: 331.5 kB / 0.965 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.916, allocations: 130.6 kB / 0.9651 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.9163, allocations: 211.1 kB / 0.9653 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.9166, allocations: 167.1 kB / 0.9655 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.9166, allocations: 0.7812 kB / 0.9655 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009133/0.9175, allocations: 0.5034 MB / 0.966 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.9175, allocations: 9.375 kB / 0.966 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.9175, allocations: 3.625 kB / 0.966 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000544/0.9181, allocations: 153.6 kB / 0.9661 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.9184, allocations: 60.84 kB / 0.9662 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003228/0.9216, allocations: 3.989 MB / 0.9701 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.9218, allocations: 21.31 kB / 0.9701 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.9219, allocations: 13.78 kB / 0.9701 GB, free: 10.2 MB / 0.7325 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.0002298/0.9221, allocations: 166.8 kB / 0.9703 GB, free: 10.05 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.344e-05/0.9222, allocations: 22.12 kB / 0.9703 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009926/0.9232, allocations: 468.5 kB / 0.9707 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.9232, allocations: 3.125 kB / 0.9707 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.9232, allocations: 5.938 kB / 0.9707 GB, free: 9.742 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.9232, allocations: 7.984 kB / 0.9707 GB, free: 9.734 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.925, allocations: 0.9973 MB / 0.9717 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.925, allocations: 1.969 kB / 0.9717 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.9251, allocations: 33.41 kB / 0.9718 GB, free: 8.949 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004535/0.9256, allocations: 160.5 kB / 0.9719 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.757e-05/0.9256, allocations: 8.719 kB / 0.9719 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003355/0.929, allocations: 3.978 MB / 0.9758 GB, free: 4.883 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.929, allocations: 6.25 kB / 0.9758 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.9301, allocations: 0.7324 MB / 0.9765 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/0.9303, allocations: 131.8 kB / 0.9766 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.9304, allocations: 7.938 kB / 0.9767 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.9306, allocations: 21.52 kB / 0.9767 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.9306, allocations: 26.77 kB / 0.9767 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.9307, allocations: 8.031 kB / 0.9767 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001894/0.9309, allocations: 161.7 kB / 0.9769 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9309, allocations: 0 / 0.9769 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006456/0.9315, allocations: 90.72 kB / 0.9769 GB, free: 3.926 MB / 0.7325 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.0002361/0.9318, allocations: 132.9 kB / 0.9771 GB, free: 3.82 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001047/0.9328, allocations: 0.5641 MB / 0.9776 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.9328, allocations: 0 / 0.9776 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005393/0.9334, allocations: 402.4 kB / 0.978 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.9338, allocations: 38.06 kB / 0.978 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.9349, allocations: 0.7205 MB / 0.9787 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004538/0.9354, allocations: 0.7849 MB / 0.9795 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001853/0.9356, allocations: 65.88 kB / 0.9796 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.9357, allocations: 24.56 kB / 0.9796 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.9357, allocations: 0 / 0.9796 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of Templates: time 0.008865/0.9445, allocations: 3.866 MB / 0.9834 GB, free: 15.84 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches