Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Conversion.Examples.ACACConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|load.S.2.|sou.S.1.|sou.S.2.|load.i.1.|load.i.2.|conACAC.terminal_n.v.1.|conACAC.terminal_n.v.2.|conACAC.terminal_p.v.1.|conACAC.terminal_p.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|load.S.2.|sou.S.1.|sou.S.2.|load.i.1.|load.i.2.|conACAC.terminal_n.v.1.|conACAC.terminal_n.v.2.|conACAC.terminal_p.v.1.|conACAC.terminal_p.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 108 kB / 15.6 MB, free: 132 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.002037/0.002036, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.524/1.524, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.815/2.815, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 65.88 kB / 0.9121 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3426, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter): time 0.004179/0.3468, allocations: 2.737 MB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002989/0.3498, allocations: 2.095 MB / 1.073 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.35, allocations: 4 kB / 1.073 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007414/0.3507, allocations: 231.1 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004262/0.3512, allocations: 219 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.3517, allocations: 275.3 kB / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003076/0.352, allocations: 322.8 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.3523, allocations: 154 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.3525, allocations: 127.6 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.3528, allocations: 151.5 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.766e-05/0.3528, allocations: 20 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005474/0.3534, allocations: 419.2 kB / 1.075 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.3535, allocations: 95.78 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.3536, allocations: 115.4 kB / 1.075 GB, free: 3.473 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000533/0.3541, allocations: 490.9 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.3542, allocations: 0 / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3542, allocations: 0 / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.3542, allocations: 0 / 1.075 GB, free: 2.992 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008438/0.355, allocations: 0.5537 MB / 1.076 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3551, allocations: 11.97 kB / 1.076 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009216/0.356, allocations: 136.5 kB / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.3563, allocations: 253.4 kB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.3563, allocations: 24.73 kB / 1.076 GB, free: 1.938 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.3564, allocations: 20.12 kB / 1.076 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.357, allocations: 401.9 kB / 1.077 GB, free: 1.496 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3571, allocations: 3.938 kB / 1.077 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.3571, allocations: 8 kB / 1.077 GB, free: 1.484 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-05/0.3572, allocations: 23.98 kB / 1.077 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007018/0.3579, allocations: 375.6 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.3597, allocations: 1.734 MB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007028/0.3605, allocations: 354.9 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.3608, allocations: 200 kB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/0.3609, allocations: 93.08 kB / 1.08 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.361, allocations: 34.5 kB / 1.08 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.361, allocations: 0 / 1.08 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.008373/0.3694, allocations: 2.056 MB / 1.082 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.3694, allocations: 81.11 kB / 1.082 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.3696, allocations: 178.7 kB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.3696, allocations: 33.7 kB / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.3697, allocations: 152.3 kB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.435e-05/0.3699, allocations: 114.3 kB / 1.082 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.37, allocations: 81.67 kB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3701, allocations: 330.8 kB / 1.082 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005378/0.3707, allocations: 272.6 kB / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005775/0.3712, allocations: 345.5 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.3724, allocations: 0.6229 MB / 1.084 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3724, allocations: 3.938 kB / 1.084 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001292/0.3737, allocations: 0.6552 MB / 1.084 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3737, allocations: 8 kB / 1.084 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3737, allocations: 0 / 1.084 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.3738, allocations: 7.938 kB / 1.084 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009392/0.3747, allocations: 151.8 kB / 1.084 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.3747, allocations: 8.188 kB / 1.084 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004404/0.3752, allocations: 59.91 kB / 1.085 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.3752, allocations: 12 kB / 1.085 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006154/0.3758, allocations: 373.7 kB / 1.085 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005463/0.3764, allocations: 337.1 kB / 1.085 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00105/0.3775, allocations: 0.6019 MB / 1.086 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.3775, allocations: 0 / 1.086 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.001257/0.3787, allocations: 0.6415 MB / 1.086 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.3788, allocations: 8.062 kB / 1.086 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3788, allocations: 7.938 kB / 1.086 GB, free: 7.199 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.512e-06/0.3788, allocations: 4 kB / 1.086 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008789/0.3797, allocations: 147.8 kB / 1.087 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3797, allocations: 7.938 kB / 1.087 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/0.3801, allocations: 59.92 kB / 1.087 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.3802, allocations: 12 kB / 1.087 GB, free: 6.973 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001837/0.3803, allocations: 208.1 kB / 1.087 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-05/0.3805, allocations: 19.81 kB / 1.087 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.3819, allocations: 0.6802 MB / 1.088 GB, free: 6.055 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3819, allocations: 8.031 kB / 1.088 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.382, allocations: 0 / 1.088 GB, free: 6.047 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.382, allocations: 7.984 kB / 1.088 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/0.384, allocations: 1.36 MB / 1.089 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.384, allocations: 4 kB / 1.089 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.3846, allocations: 116.1 kB / 1.089 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3846, allocations: 4 kB / 1.089 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3846, allocations: 8 kB / 1.089 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.3846, allocations: 11.88 kB / 1.089 GB, free: 4.441 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.3846, allocations: 4 kB / 1.089 GB, free: 4.438 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000941/0.3856, allocations: 0.7279 MB / 1.09 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.3857, allocations: 136.8 kB / 1.09 GB, free: 3.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.3858, allocations: 15.92 kB / 1.09 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.3861, allocations: 39.89 kB / 1.09 GB, free: 3.465 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.543e-05/0.3862, allocations: 27.95 kB / 1.09 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.3863, allocations: 16 kB / 1.09 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001638/0.3864, allocations: 147.2 kB / 1.09 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.01e-07/0.3865, allocations: 0 / 1.09 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006171/0.3871, allocations: 152 kB / 1.09 GB, free: 3.129 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002052/0.3873, allocations: 135.1 kB / 1.09 GB, free: 2.984 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001716/0.389, allocations: 0.9141 MB / 1.091 GB, free: 2.07 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.389, allocations: 4.188 kB / 1.091 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004198/0.3894, allocations: 255.7 kB / 1.092 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.39, allocations: 48.72 kB / 1.092 GB, free: 1.773 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.3911, allocations: 0.7134 MB / 1.092 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.3915, allocations: 0.7799 MB / 1.093 GB, free: 212 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005395/0.392, allocations: 178.8 kB / 1.093 GB, free: 28 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.3922, allocations: 31.42 kB / 1.093 GB, free: 16 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3922, allocations: 0 / 1.093 GB, free: 16 MB / 0.8575 GB Notification: Performance of Templates: time 0.008611/0.4008, allocations: 5.212 MB / 1.098 GB, free: 10.8 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches