Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001119/0.001118, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 186.6 kB / 16.92 MB, free: 6.75 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.71/2.71, allocations: 462.7 MB / 0.7371 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003911, allocations: 9.25 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3409, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005358/0.3463, allocations: 4.042 MB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005064/0.3514, allocations: 3.217 MB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004188/0.3519, allocations: 11.94 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000763/0.3526, allocations: 171 kB / 1.067 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.3538, allocations: 354.4 kB / 1.067 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007126/0.3545, allocations: 231.5 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009854/0.3555, allocations: 0.7985 MB / 1.068 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001408/0.357, allocations: 0.8241 MB / 1.069 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005252/0.3575, allocations: 223.1 kB / 1.069 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004895/0.358, allocations: 247 kB / 1.069 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.842e-05/0.3581, allocations: 16 kB / 1.069 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006559/0.3588, allocations: 335.4 kB / 1.07 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000202/0.359, allocations: 135.6 kB / 1.07 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002797/0.3593, allocations: 224.5 kB / 1.07 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007238/0.36, allocations: 0.612 MB / 1.07 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.36, allocations: 4 kB / 1.07 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.553e-06/0.36, allocations: 0 / 1.07 GB, free: 9.48 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.673e-05/0.36, allocations: 0 / 1.07 GB, free: 9.48 MB / 0.8262 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.001387/0.3614, allocations: 0.6897 MB / 1.071 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3615, allocations: 11.97 kB / 1.071 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00315/0.3646, allocations: 0.6906 MB / 1.072 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000831/0.3655, allocations: 447.8 kB / 1.072 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.3655, allocations: 21.03 kB / 1.072 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.3657, allocations: 32.12 kB / 1.072 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.3674, allocations: 0.7981 MB / 1.073 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.3675, allocations: 8 kB / 1.073 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.3675, allocations: 12 kB / 1.073 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.3677, allocations: 40.61 kB / 1.073 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/0.3698, allocations: 0.8882 MB / 1.074 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004086/0.3739, allocations: 2.831 MB / 1.077 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00179/0.3757, allocations: 0.5293 MB / 1.077 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007529/0.3765, allocations: 264.5 kB / 1.078 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.3766, allocations: 89.09 kB / 1.078 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3767, allocations: 34.56 kB / 1.078 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.274e-06/0.3767, allocations: 0 / 1.078 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.01303/0.3897, allocations: 3.218 MB / 1.081 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.3898, allocations: 59.41 kB / 1.081 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005723/0.3904, allocations: 397.5 kB / 1.081 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.435e-05/0.3905, allocations: 33.7 kB / 1.081 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.3907, allocations: 239.8 kB / 1.081 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.983e-05/0.3908, allocations: 82.77 kB / 1.082 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.3908, allocations: 29.7 kB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.391, allocations: 354.7 kB / 1.082 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.392, allocations: 367.7 kB / 1.082 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.3931, allocations: 440.5 kB / 1.083 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.3952, allocations: 0.79 MB / 1.083 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3952, allocations: 4 kB / 1.083 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00543/0.4006, allocations: 1.542 MB / 1.085 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.4008, allocations: 149.6 kB / 1.085 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.4008, allocations: 0 / 1.085 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003965/0.4048, allocations: 0.8247 MB / 1.086 GB, free: 9.051 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007455/0.4055, allocations: 139.8 kB / 1.086 GB, free: 8.914 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006848/0.4124, allocations: 4.536 MB / 1.091 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008973/0.4133, allocations: 115.8 kB / 1.091 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.4134, allocations: 19.98 kB / 1.091 GB, free: 3.977 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.4134, allocations: 4 kB / 1.091 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004507/0.418, allocations: 1.269 MB / 1.092 GB, free: 2.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.418, allocations: 0 / 1.092 GB, free: 2.699 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002613/0.4206, allocations: 0.5471 MB / 1.092 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007452/0.4214, allocations: 143.8 kB / 1.093 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004642/0.426, allocations: 2.693 MB / 1.095 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008709/0.4269, allocations: 111.9 kB / 1.095 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.08e-05/0.427, allocations: 19.98 kB / 1.095 GB, free: 15.05 MB / 0.8575 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.0005177/0.4276, allocations: 316.9 kB / 1.096 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.4277, allocations: 35.53 kB / 1.096 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004862/0.4325, allocations: 1.416 MB / 1.097 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.4326, allocations: 4 kB / 1.097 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4326, allocations: 0 / 1.097 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.4326, allocations: 7.922 kB / 1.097 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00554/0.4382, allocations: 2.035 MB / 1.099 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.4382, allocations: 0 / 1.099 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004098/0.4386, allocations: 91.77 kB / 1.099 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003426/0.442, allocations: 0.7584 MB / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.4421, allocations: 8 kB / 1.1 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00579/0.4479, allocations: 4.376 MB / 1.104 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4479, allocations: 240 / 1.104 GB, free: 5.641 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/0.4525, allocations: 1.413 MB / 1.106 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.4528, allocations: 168.6 kB / 1.106 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.956e-05/0.4529, allocations: 15.92 kB / 1.106 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006578/0.4536, allocations: 95.86 kB / 1.106 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.4537, allocations: 19.97 kB / 1.106 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.4538, allocations: 11.98 kB / 1.106 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004387/0.4542, allocations: 311.1 kB / 1.106 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4542, allocations: 0 / 1.106 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009055/0.4552, allocations: 200 kB / 1.106 GB, free: 3.375 MB / 0.8575 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.0002037/0.4554, allocations: 107.2 kB / 1.106 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00474/0.4601, allocations: 1.749 MB / 1.108 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.4602, allocations: 0 / 1.108 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001309/0.4615, allocations: 0.6418 MB / 1.109 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000863/0.4624, allocations: 115.4 kB / 1.109 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.4646, allocations: 1.276 MB / 1.11 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005109/0.4651, allocations: 0.9015 MB / 1.111 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.4653, allocations: 43.34 kB / 1.111 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of SimCode: time 7.01e-07/0.4653, allocations: 0 / 1.111 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of Templates: time 0.01788/0.4832, allocations: 12.5 MB / 1.123 GB, free: 1.941 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches