Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 109.3 kB / 16.41 MB, free: 6.512 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.001659/0.001659, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.436/1.436, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.274/2.274, allocations: 390.3 MB / 0.6655 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 0.9515 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9113/0.9126, allocations: 140.4 MB / 1.089 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.006131/0.9188, allocations: 4.377 MB / 1.093 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00496/0.9238, allocations: 3.265 MB / 1.096 GB, free: 344 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004159/0.9242, allocations: 20.75 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001811/0.9261, allocations: 0.4967 MB / 1.097 GB, free: 44 kB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001521/0.9277, allocations: 401.6 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008596/0.9285, allocations: 247.8 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0009656/0.9295, allocations: 0.5984 MB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008186/0.9303, allocations: 0.5236 MB / 1.098 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005966/0.9309, allocations: 292.7 kB / 1.099 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004907/0.9314, allocations: 270.4 kB / 1.099 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 8.746e-05/0.9315, allocations: 43.33 kB / 1.099 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007814/0.9323, allocations: 294.1 kB / 1.099 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.9326, allocations: 169.5 kB / 1.099 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.9329, allocations: 231.7 kB / 1.1 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.9341, allocations: 0.7823 MB / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.9341, allocations: 0 / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.332e-06/0.9341, allocations: 0 / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 9.417e-06/0.9341, allocations: 0 / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001595/0.9357, allocations: 0.7804 MB / 1.101 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.9358, allocations: 8.812 kB / 1.101 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003249/0.939, allocations: 0.6801 MB / 1.102 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000915/0.94, allocations: 451 kB / 1.102 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.94, allocations: 25.69 kB / 1.102 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.9401, allocations: 40.27 kB / 1.102 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002078/0.9422, allocations: 0.7801 MB / 1.103 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.9422, allocations: 1.062 kB / 1.103 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.9423, allocations: 15.55 kB / 1.103 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/0.9424, allocations: 48.7 kB / 1.103 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002279/0.9447, allocations: 0.8713 MB / 1.104 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004278/0.949, allocations: 2.802 MB / 1.107 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001873/0.9509, allocations: 0.5217 MB / 1.107 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007796/0.9517, allocations: 255.2 kB / 1.107 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.9518, allocations: 86.3 kB / 1.107 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.9519, allocations: 36.89 kB / 1.108 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 2.795e-06/0.9519, allocations: 4 kB / 1.108 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24): time 0.01286/0.9648, allocations: 3.059 MB / 1.111 GB, free: 9.961 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.9648, allocations: 54.03 kB / 1.111 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007134/0.9656, allocations: 405.4 kB / 1.111 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.388e-05/0.9656, allocations: 28.14 kB / 1.111 GB, free: 9.672 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.9658, allocations: 239.2 kB / 1.111 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.966, allocations: 85.48 kB / 1.111 GB, free: 9.41 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.9661, allocations: 70.66 kB / 1.111 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.9663, allocations: 346.3 kB / 1.112 GB, free: 9.047 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.9674, allocations: 362.4 kB / 1.112 GB, free: 8.945 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.9685, allocations: 426.9 kB / 1.112 GB, free: 8.766 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002032/0.9705, allocations: 0.7566 MB / 1.113 GB, free: 8.477 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.9705, allocations: 0 / 1.113 GB, free: 8.477 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005347/0.9759, allocations: 1.494 MB / 1.115 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.9759, allocations: 6.234 kB / 1.115 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.9759, allocations: 2.688 kB / 1.115 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003729/0.9797, allocations: 0.7775 MB / 1.115 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007453/0.9804, allocations: 126.7 kB / 1.116 GB, free: 8.047 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007207/0.9877, allocations: 4.843 MB / 1.12 GB, free: 4.598 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009828/0.9887, allocations: 113.7 kB / 1.12 GB, free: 4.59 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.778e-05/0.9887, allocations: 18.14 kB / 1.12 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001299/0.99, allocations: 0.5318 MB / 1.121 GB, free: 4.375 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001027/0.9911, allocations: 418.9 kB / 1.121 GB, free: 4.199 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002076/0.9932, allocations: 0.7312 MB / 1.122 GB, free: 3.922 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.424e-06/0.9932, allocations: 1.094 kB / 1.122 GB, free: 3.922 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.00459/0.9978, allocations: 1.267 MB / 1.123 GB, free: 3.621 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.9978, allocations: 5.625 kB / 1.123 GB, free: 3.621 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.9978, allocations: 3.172 kB / 1.123 GB, free: 3.621 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/1, allocations: 0.4947 MB / 1.124 GB, free: 3.574 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007478/1.001, allocations: 141.4 kB / 1.124 GB, free: 3.566 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003828/1.005, allocations: 2.607 MB / 1.126 GB, free: 1.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009473/1.006, allocations: 110.4 kB / 1.127 GB, free: 1.762 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/1.006, allocations: 14.31 kB / 1.127 GB, free: 1.762 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002748/1.006, allocations: 202.6 kB / 1.127 GB, free: 1.562 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/1.006, allocations: 37.14 kB / 1.127 GB, free: 1.543 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005046/1.011, allocations: 1.355 MB / 1.128 GB, free: 1.207 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/1.011, allocations: 1.875 kB / 1.128 GB, free: 1.207 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/1.011, allocations: 9.438 kB / 1.128 GB, free: 1.199 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000364/1.012, allocations: 161.6 kB / 1.128 GB, free: 1.066 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/1.012, allocations: 6.859 kB / 1.128 GB, free: 1.062 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007127/1.013, allocations: 86.56 kB / 1.128 GB, free: 1.055 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/1.013, allocations: 26.02 kB / 1.128 GB, free: 1.051 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003757/1.017, allocations: 1.162 MB / 1.129 GB, free: 0.7188 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002665/1.019, allocations: 1.105 MB / 1.131 GB, free: 264 kB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008428/1.02, allocations: 315.2 kB / 1.131 GB, free: 184 kB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0006437/1.021, allocations: 305.9 kB / 1.131 GB, free: 32 kB / 0.8731 GB Notification: Performance of Backend: time 3.41e-07/1.021, allocations: 0 / 1.131 GB, free: 32 kB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00458/1.025, allocations: 1.499 MB / 1.133 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of SimCode: time 0.002359/1.028, allocations: 1.418 MB / 1.134 GB, free: 14.37 MB / 0.8887 GB Notification: Performance of Templates: time 0.02704/1.055, allocations: 15.46 MB / 1.149 GB, free: 6.742 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches