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.000845/0.000845, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.00665/0.00665, allocations: 171.4 kB / 16.27 MB, free: 6.328 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.551/1.551, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.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.627/2.627, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.0004769, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8074/0.8079, allocations: 142.4 MB / 0.9551 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005114/0.8131, allocations: 4.036 MB / 0.959 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005353/0.8185, allocations: 3.202 MB / 0.9621 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004778/0.819, allocations: 14.22 kB / 0.9621 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008913/0.8199, allocations: 170.2 kB / 0.9623 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001444/0.8214, allocations: 354.2 kB / 0.9626 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007611/0.8221, allocations: 228.9 kB / 0.9629 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001106/0.8232, allocations: 0.8044 MB / 0.9636 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001525/0.8248, allocations: 0.8266 MB / 0.9644 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006788/0.8255, allocations: 220.7 kB / 0.9647 GB, free: 452 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005478/0.826, allocations: 257.1 kB / 0.9649 GB, free: 304 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.8261, allocations: 15.66 kB / 0.9649 GB, free: 304 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009941/0.8271, allocations: 327.3 kB / 0.9652 GB, free: 128 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001831/0.8273, allocations: 138.3 kB / 0.9654 GB, free: 40 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003915/0.8277, allocations: 220.2 kB / 0.9656 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00137/0.8291, allocations: 0.7715 MB / 0.9663 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.8291, allocations: 0 / 0.9663 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.777e-06/0.8291, allocations: 0 / 0.9663 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.8291, allocations: 4 kB / 0.9663 GB, free: 15.37 MB / 0.7325 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.001567/0.8307, allocations: 0.6836 MB / 0.967 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.8308, allocations: 13.53 kB / 0.967 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003178/0.834, allocations: 0.6898 MB / 0.9677 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008705/0.8348, allocations: 444.3 kB / 0.9681 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.086e-05/0.8349, allocations: 25.28 kB / 0.9681 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.835, allocations: 31.62 kB / 0.9682 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/0.837, allocations: 0.7942 MB / 0.9689 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.837, allocations: 0.875 kB / 0.9689 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.926e-05/0.8371, allocations: 16 kB / 0.9689 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.8372, allocations: 40.02 kB / 0.969 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002355/0.8396, allocations: 0.8952 MB / 0.9699 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0047/0.8443, allocations: 2.822 MB / 0.9726 GB, free: 10.66 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.8462, allocations: 0.5235 MB / 0.9731 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008118/0.847, allocations: 272.2 kB / 0.9734 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.8472, allocations: 95.11 kB / 0.9735 GB, free: 10.16 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.8472, allocations: 31.59 kB / 0.9735 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.615e-06/0.8472, allocations: 0 / 0.9735 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24): time 0.01353/0.8607, allocations: 3.206 MB / 0.9766 GB, free: 8.492 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.8608, allocations: 58.23 kB / 0.9767 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005796/0.8614, allocations: 409 kB / 0.9771 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.535e-05/0.8615, allocations: 31.02 kB / 0.9771 GB, free: 8.137 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.8617, allocations: 236.2 kB / 0.9773 GB, free: 7.926 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.8618, allocations: 85.53 kB / 0.9774 GB, free: 7.852 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.358e-05/0.8619, allocations: 29.77 kB / 0.9775 GB, free: 7.824 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.8621, allocations: 345.8 kB / 0.9778 GB, free: 7.488 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.8631, allocations: 380.3 kB / 0.9781 GB, free: 7.215 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.8642, allocations: 440.5 kB / 0.9786 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/0.8663, allocations: 0.788 MB / 0.9793 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.8663, allocations: 0 / 0.9793 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005628/0.872, allocations: 1.546 MB / 0.9808 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.8721, allocations: 149.7 kB / 0.981 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.982e-05/0.8722, allocations: 4 kB / 0.981 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004022/0.8762, allocations: 0.8247 MB / 0.9818 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000759/0.877, allocations: 135.8 kB / 0.9819 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00705/0.8841, allocations: 4.536 MB / 0.9864 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.8851, allocations: 119.9 kB / 0.9865 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/0.8852, allocations: 15.98 kB / 0.9865 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.8852, allocations: 4 kB / 0.9865 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00468/0.8899, allocations: 1.265 MB / 0.9877 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.8899, allocations: 4 kB / 0.9877 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002627/0.8926, allocations: 0.5393 MB / 0.9883 GB, free: 12.47 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000735/0.8933, allocations: 155.8 kB / 0.9884 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004669/0.898, allocations: 2.689 MB / 0.991 GB, free: 9.496 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009285/0.899, allocations: 111.9 kB / 0.9911 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.594e-05/0.899, allocations: 15.97 kB / 0.9911 GB, free: 9.371 MB / 0.7481 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.0006047/0.8996, allocations: 329.1 kB / 0.9915 GB, free: 9.039 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.707e-05/0.8997, allocations: 31.62 kB / 0.9915 GB, free: 9.008 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004891/0.9046, allocations: 1.417 MB / 0.9929 GB, free: 7.574 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.9047, allocations: 0 / 0.9929 GB, free: 7.574 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.9047, allocations: 4 kB / 0.9929 GB, free: 7.57 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.9047, allocations: 3.938 kB / 0.9929 GB, free: 7.566 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005721/0.9104, allocations: 2.038 MB / 0.9949 GB, free: 5.453 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.9104, allocations: 0 / 0.9949 GB, free: 5.453 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004253/0.9109, allocations: 95.92 kB / 0.995 GB, free: 5.359 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003477/0.9144, allocations: 0.7544 MB / 0.9957 GB, free: 4.598 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.9144, allocations: 11.98 kB / 0.9957 GB, free: 4.586 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005993/0.9204, allocations: 4.364 MB / 1 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.9205, allocations: 7.938 kB / 1 GB, free: 15.94 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/0.9251, allocations: 1.412 MB / 1.001 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003102/0.9254, allocations: 164.6 kB / 1.002 GB, free: 14.32 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.584e-05/0.9255, allocations: 11.94 kB / 1.002 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.9262, allocations: 91.84 kB / 1.002 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.9263, allocations: 27.97 kB / 1.002 GB, free: 14.19 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.9263, allocations: 11.98 kB / 1.002 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004435/0.9268, allocations: 303.1 kB / 1.002 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.61e-07/0.9268, allocations: 0 / 1.002 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009177/0.9277, allocations: 204 kB / 1.002 GB, free: 13.69 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * 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: 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 Backend phase and start with SimCode phase: time 0.0001822/0.9279, allocations: 107.2 kB / 1.002 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004844/0.9328, allocations: 1.756 MB / 1.004 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.9328, allocations: 0 / 1.004 GB, free: 11.78 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.9341, allocations: 0.6347 MB / 1.005 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008185/0.9349, allocations: 120.9 kB / 1.005 GB, free: 11 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.9371, allocations: 1.25 MB / 1.006 GB, free: 9.719 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005801/0.9377, allocations: 0.9093 MB / 1.007 GB, free: 8.781 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006274/0.9383, allocations: 155.2 kB / 1.007 GB, free: 8.629 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.9385, allocations: 39.42 kB / 1.007 GB, free: 8.59 MB / 0.7637 GB Notification: Performance of SimCode: time 5.51e-07/0.9385, allocations: 0 / 1.007 GB, free: 8.59 MB / 0.7637 GB Notification: Performance of Templates: time 0.02065/0.9591, allocations: 12.07 MB / 1.019 GB, free: 12.59 MB / 0.7794 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/jenkins/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