Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001969/0.001969, allocations: 104.3 kB / 16.4 MB, free: 5.977 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.001968/0.001968, allocations: 190.8 kB / 17.34 MB, free: 5.586 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.532/1.532, 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.497/2.497, allocations: 390.2 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.001521, allocations: 59.91 kB / 0.9515 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9845/0.9861, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter): time 0.003791/0.9899, allocations: 2.742 MB / 1.091 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002786/0.9927, allocations: 2.092 MB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.9928, allocations: 3.094 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007427/0.9936, allocations: 230.6 kB / 1.094 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004847/0.9941, allocations: 219.1 kB / 1.094 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.9948, allocations: 277.9 kB / 1.094 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.9952, allocations: 313 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.9955, allocations: 164.3 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.9957, allocations: 124.2 kB / 1.095 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003133/0.9961, allocations: 153.3 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.9961, allocations: 19.5 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007536/0.9969, allocations: 418.9 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.997, allocations: 94.98 kB / 1.095 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.9971, allocations: 119.6 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006825/0.9978, allocations: 490.3 kB / 1.096 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.9978, allocations: 1.062 kB / 1.096 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.783e-06/0.9978, allocations: 0 / 1.096 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.9978, allocations: 0 / 1.096 GB, free: 1.129 MB / 0.8575 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.0008547/0.9987, allocations: 0.5576 MB / 1.096 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.9988, allocations: 8.688 kB / 1.096 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.9998, allocations: 129.4 kB / 1.097 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/1, allocations: 265.3 kB / 1.097 GB, free: 396 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/1, allocations: 12.73 kB / 1.097 GB, free: 392 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.036e-05/1, allocations: 24.66 kB / 1.097 GB, free: 380 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007711/1.001, allocations: 395.5 kB / 1.097 GB, free: 176 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/1.001, allocations: 9.031 kB / 1.097 GB, free: 168 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/1.001, allocations: 6.703 kB / 1.097 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.178e-05/1.001, allocations: 21.11 kB / 1.097 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007975/1.002, allocations: 376.1 kB / 1.098 GB, free: 48 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/1.004, allocations: 1.744 MB / 1.099 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008239/1.005, allocations: 344.5 kB / 1.1 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/1.005, allocations: 191.9 kB / 1.1 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001528/1.006, allocations: 87.56 kB / 1.1 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/1.006, allocations: 44.59 kB / 1.1 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=25): time 1.734e-06/1.006, allocations: 0.6875 kB / 1.1 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of matching and sorting (n=35): time 0.009759/1.015, allocations: 2.054 MB / 1.102 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.494e-05/1.016, allocations: 81.67 kB / 1.102 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/1.016, allocations: 179.5 kB / 1.102 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/1.016, allocations: 35.23 kB / 1.102 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/1.016, allocations: 147.1 kB / 1.102 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/1.016, allocations: 127.2 kB / 1.102 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/1.016, allocations: 76.27 kB / 1.103 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001257/1.016, allocations: 331.5 kB / 1.103 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006391/1.017, allocations: 263.7 kB / 1.103 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006937/1.018, allocations: 348.8 kB / 1.103 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/1.019, allocations: 0.6224 MB / 1.104 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/1.019, allocations: 5.25 kB / 1.104 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001443/1.021, allocations: 0.6642 MB / 1.105 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/1.021, allocations: 5.75 kB / 1.105 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/1.021, allocations: 4.188 kB / 1.105 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/1.021, allocations: 4.094 kB / 1.105 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/1.022, allocations: 156.6 kB / 1.105 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/1.022, allocations: 4.266 kB / 1.105 GB, free: 12.03 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004944/1.022, allocations: 56.34 kB / 1.105 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-05/1.022, allocations: 20 kB / 1.105 GB, free: 12.02 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006874/1.023, allocations: 364.9 kB / 1.105 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006018/1.023, allocations: 339.6 kB / 1.106 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001169/1.025, allocations: 0.591 MB / 1.106 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.735e-06/1.025, allocations: 1.375 kB / 1.106 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of matching and sorting (n=44) (initialization_lambda0): time 0.001383/1.026, allocations: 0.6363 MB / 1.107 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/1.026, allocations: 5.906 kB / 1.107 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/1.026, allocations: 2.625 kB / 1.107 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.566e-06/1.026, allocations: 9.078 kB / 1.107 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009465/1.027, allocations: 152.8 kB / 1.107 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/1.027, allocations: 8.578 kB / 1.107 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/1.028, allocations: 51.08 kB / 1.107 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/1.028, allocations: 17.72 kB / 1.107 GB, free: 11.09 MB / 0.8731 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.0002405/1.028, allocations: 210.1 kB / 1.107 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.943e-05/1.028, allocations: 22.62 kB / 1.107 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/1.03, allocations: 0.6745 MB / 1.108 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/1.03, allocations: 3.906 kB / 1.108 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.03, allocations: 1.406 kB / 1.108 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.03, allocations: 6.016 kB / 1.108 GB, free: 10.58 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/1.032, allocations: 1.371 MB / 1.109 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/1.032, allocations: 1.188 kB / 1.109 GB, free: 9.754 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006146/1.033, allocations: 120.8 kB / 1.109 GB, free: 9.746 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/1.033, allocations: 8.719 kB / 1.109 GB, free: 9.742 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/1.033, allocations: 8.438 kB / 1.109 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.705e-06/1.033, allocations: 12.27 kB / 1.109 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/1.033, allocations: 7.109 kB / 1.109 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/1.034, allocations: 0.7105 MB / 1.11 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/1.034, allocations: 140.6 kB / 1.11 GB, free: 9.164 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.667e-05/1.034, allocations: 9.812 kB / 1.11 GB, free: 9.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/1.035, allocations: 47.06 kB / 1.11 GB, free: 9.148 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/1.035, allocations: 33.08 kB / 1.11 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/1.035, allocations: 18.67 kB / 1.11 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002325/1.035, allocations: 147.9 kB / 1.111 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.61e-07/1.035, allocations: 0 / 1.111 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0007493/1.036, allocations: 145.9 kB / 1.111 GB, free: 9.016 MB / 0.8731 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.0002185/1.036, allocations: 141.4 kB / 1.111 GB, free: 8.902 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001888/1.038, allocations: 0.8756 MB / 1.112 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.038, allocations: 1.406 kB / 1.112 GB, free: 8.613 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004941/1.038, allocations: 258.2 kB / 1.112 GB, free: 8.531 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005613/1.039, allocations: 54.36 kB / 1.112 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/1.04, allocations: 0.7313 MB / 1.113 GB, free: 8.074 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/1.041, allocations: 0.7819 MB / 1.113 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/1.041, allocations: 38.23 kB / 1.113 GB, free: 7.355 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/1.041, allocations: 0 / 1.113 GB, free: 7.355 MB / 0.8731 GB Notification: Performance of Templates: time 0.009223/1.05, allocations: 4.953 MB / 1.118 GB, free: 6.965 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACACConverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACACConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches