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.001522/0.001523, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001527/0.001527, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.08 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.265/2.265, allocations: 390.3 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 63.88 kB / 0.9515 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9083/0.9098, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005685/0.9155, allocations: 4.388 MB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004588/0.9202, allocations: 3.26 MB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003162/0.9205, allocations: 14.12 kB / 1.096 GB, free: 328 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001532/0.9221, allocations: 0.5104 MB / 1.097 GB, free: 24 kB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.9233, allocations: 396.1 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007495/0.924, allocations: 247.3 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0009311/0.925, allocations: 0.5938 MB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008339/0.9258, allocations: 0.5271 MB / 1.098 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006255/0.9265, allocations: 290 kB / 1.099 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000535/0.927, allocations: 277.7 kB / 1.099 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.411e-05/0.9271, allocations: 39.78 kB / 1.099 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006642/0.9278, allocations: 297.5 kB / 1.099 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.928, allocations: 164.9 kB / 1.099 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002758/0.9283, allocations: 227.8 kB / 1.1 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.9295, allocations: 0.7859 MB / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.9295, allocations: 0.6094 kB / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.984e-06/0.9295, allocations: 0 / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.139e-05/0.9295, allocations: 0.7812 kB / 1.1 GB, free: 14.42 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.00151/0.9311, allocations: 0.7717 MB / 1.101 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.9311, allocations: 10 kB / 1.101 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/0.9342, allocations: 0.6801 MB / 1.102 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008707/0.9351, allocations: 462.5 kB / 1.102 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.9351, allocations: 25.44 kB / 1.102 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.131e-05/0.9352, allocations: 32.7 kB / 1.102 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001939/0.9372, allocations: 0.7879 MB / 1.103 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/0.9372, allocations: 1.25 kB / 1.103 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.157e-05/0.9373, allocations: 15 kB / 1.103 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001549/0.9374, allocations: 44.41 kB / 1.103 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002231/0.9397, allocations: 0.864 MB / 1.104 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004329/0.944, allocations: 2.802 MB / 1.107 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.9458, allocations: 0.5179 MB / 1.107 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007452/0.9465, allocations: 254.9 kB / 1.107 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.9466, allocations: 93.42 kB / 1.107 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.9467, allocations: 31.91 kB / 1.107 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 2.114e-06/0.9467, allocations: 5.031 kB / 1.107 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of matching and sorting (n=24): time 0.01315/0.9598, allocations: 3.06 MB / 1.11 GB, free: 9.953 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.9599, allocations: 62.34 kB / 1.111 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006893/0.9606, allocations: 401.3 kB / 1.111 GB, free: 9.691 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 7.457e-05/0.9607, allocations: 30.98 kB / 1.111 GB, free: 9.656 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.9609, allocations: 235.9 kB / 1.111 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.961, allocations: 87.86 kB / 1.111 GB, free: 9.395 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001774/0.9612, allocations: 71.7 kB / 1.111 GB, free: 9.359 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.9614, allocations: 342.9 kB / 1.112 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.9624, allocations: 366.4 kB / 1.112 GB, free: 8.93 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.9634, allocations: 425.4 kB / 1.112 GB, free: 8.75 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.9654, allocations: 0.7585 MB / 1.113 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.9654, allocations: 0 / 1.113 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005349/0.9708, allocations: 1.49 MB / 1.115 GB, free: 8.121 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.9708, allocations: 5.781 kB / 1.115 GB, free: 8.121 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.9708, allocations: 6.125 kB / 1.115 GB, free: 8.117 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003936/0.9748, allocations: 0.7737 MB / 1.115 GB, free: 8.039 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007323/0.9755, allocations: 131.9 kB / 1.116 GB, free: 8.031 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007516/0.983, allocations: 4.835 MB / 1.12 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009377/0.984, allocations: 108.6 kB / 1.12 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.818e-05/0.9841, allocations: 21.59 kB / 1.12 GB, free: 4.574 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001286/0.9854, allocations: 0.5295 MB / 1.121 GB, free: 4.367 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001006/0.9864, allocations: 414.7 kB / 1.121 GB, free: 4.195 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001903/0.9883, allocations: 0.7315 MB / 1.122 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.9884, allocations: 0 / 1.122 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004512/0.9929, allocations: 1.272 MB / 1.123 GB, free: 3.613 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.9929, allocations: 8.469 kB / 1.123 GB, free: 3.613 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.9929, allocations: 2.062 kB / 1.123 GB, free: 3.613 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002528/0.9955, allocations: 0.5001 MB / 1.124 GB, free: 3.562 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00079/0.9963, allocations: 143.1 kB / 1.124 GB, free: 3.551 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003923/1, allocations: 2.608 MB / 1.126 GB, free: 1.754 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009128/1.001, allocations: 110.2 kB / 1.127 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.115e-05/1.001, allocations: 14.16 kB / 1.127 GB, free: 1.746 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.0002442/1.001, allocations: 197.4 kB / 1.127 GB, free: 1.551 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/1.002, allocations: 36.78 kB / 1.127 GB, free: 1.531 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005061/1.007, allocations: 1.354 MB / 1.128 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.007, allocations: 3.297 kB / 1.128 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.007, allocations: 5.062 kB / 1.128 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/1.007, allocations: 2.297 kB / 1.128 GB, free: 1.191 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006036/1.013, allocations: 1.978 MB / 1.13 GB, free: 460 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/1.013, allocations: 1.75 kB / 1.13 GB, free: 460 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004233/1.013, allocations: 82.56 kB / 1.13 GB, free: 452 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003602/1.017, allocations: 0.708 MB / 1.131 GB, free: 376 kB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.151e-05/1.017, allocations: 14.67 kB / 1.131 GB, free: 368 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006657/1.024, allocations: 4.68 MB / 1.135 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.024, allocations: 1.469 kB / 1.135 GB, free: 12.82 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004502/1.028, allocations: 1.357 MB / 1.137 GB, free: 12.04 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003605/1.029, allocations: 165.3 kB / 1.137 GB, free: 11.89 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/1.029, allocations: 6.719 kB / 1.137 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/1.029, allocations: 84.3 kB / 1.137 GB, free: 11.84 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/1.03, allocations: 21.91 kB / 1.137 GB, free: 11.83 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/1.03, allocations: 14.61 kB / 1.137 GB, free: 11.82 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004921/1.03, allocations: 306.8 kB / 1.137 GB, free: 11.63 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.61e-07/1.03, allocations: 0 / 1.137 GB, free: 11.63 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001169/1.031, allocations: 200.8 kB / 1.137 GB, free: 11.62 MB / 0.8887 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.0002443/1.031, allocations: 113.5 kB / 1.138 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.003885/1.035, allocations: 1.565 MB / 1.139 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.035, allocations: 0 / 1.139 GB, free: 10.54 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001255/1.037, allocations: 0.6305 MB / 1.14 GB, free: 10.1 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007658/1.037, allocations: 125.2 kB / 1.14 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/1.04, allocations: 1.079 MB / 1.141 GB, free: 9.352 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/1.04, allocations: 0.9014 MB / 1.142 GB, free: 8.547 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/1.04, allocations: 38.98 kB / 1.142 GB, free: 8.531 MB / 0.8887 GB Notification: Performance of SimCode: time 5.11e-07/1.04, allocations: 0 / 1.142 GB, free: 8.531 MB / 0.8887 GB Notification: Performance of Templates: time 0.0185/1.059, allocations: 12.56 MB / 1.154 GB, free: 1.953 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