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.00124/0.00124, allocations: 108 kB / 15.61 MB, free: 152 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.001317/0.001317, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.799/2.799, allocations: 472.6 MB / 0.7451 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 65.45 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3469, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter): time 0.004643/0.3516, allocations: 2.737 MB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00319/0.3548, allocations: 2.095 MB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.355, allocations: 7.938 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00078/0.3558, allocations: 231.1 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004639/0.3563, allocations: 219.1 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006232/0.3569, allocations: 275.2 kB / 1.074 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.3572, allocations: 318.9 kB / 1.074 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002975/0.3575, allocations: 159.7 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.3577, allocations: 123.6 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.358, allocations: 155.5 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.739e-05/0.358, allocations: 24 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005525/0.3586, allocations: 411.3 kB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.608e-05/0.3587, allocations: 95.77 kB / 1.075 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.3588, allocations: 115.4 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005299/0.3593, allocations: 486.9 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3594, allocations: 0 / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3594, allocations: 3.938 kB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.3594, allocations: 0 / 1.075 GB, free: 3.051 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.0008899/0.3603, allocations: 0.5615 MB / 1.076 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.3603, allocations: 8.031 kB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009414/0.3613, allocations: 128.5 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.3616, allocations: 268.9 kB / 1.076 GB, free: 2.008 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.3616, allocations: 16.75 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.3616, allocations: 20.12 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006449/0.3623, allocations: 393.9 kB / 1.077 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.3623, allocations: 0 / 1.077 GB, free: 1.555 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.3624, allocations: 8 kB / 1.077 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.922e-05/0.3624, allocations: 23.98 kB / 1.077 GB, free: 1.523 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006985/0.3631, allocations: 383.6 kB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.365, allocations: 1.73 MB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000716/0.3657, allocations: 356.9 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003429/0.3661, allocations: 193.5 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001411/0.3662, allocations: 89.09 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.3663, allocations: 38.56 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/0.3663, allocations: 0 / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.008514/0.3748, allocations: 2.049 MB / 1.081 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.3749, allocations: 93.05 kB / 1.082 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.3751, allocations: 174.7 kB / 1.082 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.3751, allocations: 29.7 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3752, allocations: 152.3 kB / 1.082 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.3754, allocations: 118.3 kB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.3755, allocations: 77.69 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3756, allocations: 330.8 kB / 1.082 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005563/0.3762, allocations: 268.6 kB / 1.083 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005979/0.3768, allocations: 345.5 kB / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.378, allocations: 0.619 MB / 1.084 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.378, allocations: 7.938 kB / 1.084 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001352/0.3793, allocations: 0.6628 MB / 1.084 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3794, allocations: 8 kB / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3794, allocations: 0 / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3794, allocations: 4 kB / 1.084 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009374/0.3804, allocations: 156 kB / 1.084 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.3804, allocations: 4 kB / 1.084 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004694/0.3809, allocations: 55.92 kB / 1.084 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.767e-05/0.3809, allocations: 15.98 kB / 1.084 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006342/0.3816, allocations: 372 kB / 1.085 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005838/0.3821, allocations: 345.1 kB / 1.085 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001093/0.3833, allocations: 0.6019 MB / 1.086 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.344e-06/0.3833, allocations: 3.938 kB / 1.086 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.001276/0.3845, allocations: 0.6414 MB / 1.086 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.3846, allocations: 4 kB / 1.086 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3846, allocations: 4 kB / 1.086 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.973e-06/0.3846, allocations: 4.047 kB / 1.086 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008794/0.3855, allocations: 151.9 kB / 1.087 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.3855, allocations: 8 kB / 1.087 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.3859, allocations: 55.92 kB / 1.087 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.386, allocations: 19.98 kB / 1.087 GB, free: 7.023 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.0001685/0.3862, allocations: 200.7 kB / 1.087 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.945e-05/0.3863, allocations: 19.81 kB / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.3877, allocations: 0.6802 MB / 1.087 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.3877, allocations: 7.984 kB / 1.088 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.3877, allocations: 0 / 1.088 GB, free: 6.105 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3877, allocations: 4 kB / 1.088 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.3899, allocations: 1.368 MB / 1.089 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3899, allocations: 4 kB / 1.089 GB, free: 4.633 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.3905, allocations: 119.8 kB / 1.089 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.3905, allocations: 4 kB / 1.089 GB, free: 4.512 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.3906, allocations: 12 kB / 1.089 GB, free: 4.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.3906, allocations: 7.938 kB / 1.089 GB, free: 4.492 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.3906, allocations: 4 kB / 1.089 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.3916, allocations: 0.7165 MB / 1.09 GB, free: 3.734 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.3918, allocations: 140.8 kB / 1.09 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.3918, allocations: 11.94 kB / 1.09 GB, free: 3.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003543/0.3922, allocations: 51.88 kB / 1.09 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.727e-05/0.3923, allocations: 27.97 kB / 1.09 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.3923, allocations: 12 kB / 1.09 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001787/0.3925, allocations: 147.8 kB / 1.09 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.714e-06/0.3925, allocations: 0 / 1.09 GB, free: 3.332 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000679/0.3932, allocations: 151.9 kB / 1.09 GB, free: 3.184 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.0002426/0.3934, allocations: 139.1 kB / 1.09 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001861/0.3953, allocations: 0.9183 MB / 1.091 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3953, allocations: 0 / 1.091 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004503/0.3958, allocations: 255.7 kB / 1.091 GB, free: 1.867 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.3963, allocations: 57.41 kB / 1.092 GB, free: 1.812 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.3976, allocations: 0.7007 MB / 1.092 GB, free: 1.062 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.398, allocations: 0.7838 MB / 1.093 GB, free: 260 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005585/0.3985, allocations: 174.8 kB / 1.093 GB, free: 80 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.3987, allocations: 27.44 kB / 1.093 GB, free: 52 kB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3987, allocations: 0 / 1.093 GB, free: 52 kB / 0.8419 GB Notification: Performance of Templates: time 0.00956/0.4083, allocations: 5.221 MB / 1.098 GB, free: 10.86 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