Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|res.S.1.|sou.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter") translateModel(Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.S.1.|res.S.1.|sou.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.344/2.344, allocations: 393.5 MB / 408.4 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001593/0.001594, allocations: 174.7 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.701/1.701, allocations: 223.1 MB / 0.7992 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000917/0.000917, allocations: 92.31 kB / 0.9396 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.000385, allocations: 8.75 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.34/0.3404, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.062/1.403, allocations: 183.3 MB / 1.408 GB, free: 71.52 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/1.403, allocations: 95.08 kB / 1.408 GB, free: 71.52 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:42:5-42:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.06272/1.466, allocations: 22.79 MB / 1.431 GB, free: 69.47 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.114e-06/1.466, allocations: 1.344 kB / 1.431 GB, free: 69.47 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.877e-05/1.466, allocations: 5.25 kB / 1.431 GB, free: 69.47 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001364/1.467, allocations: 0.5998 MB / 1.431 GB, free: 68.98 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/1.467, allocations: 14.27 kB / 1.431 GB, free: 68.98 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/1.469, allocations: 122.6 kB / 1.431 GB, free: 68.96 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005591/1.469, allocations: 275.2 kB / 1.432 GB, free: 68.74 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/1.469, allocations: 16.38 kB / 1.432 GB, free: 68.74 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.895e-05/1.469, allocations: 22.47 kB / 1.432 GB, free: 68.74 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007828/1.47, allocations: 407.5 kB / 1.432 GB, free: 68.63 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/1.47, allocations: 3.938 kB / 1.432 GB, free: 68.62 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/1.47, allocations: 11.41 kB / 1.432 GB, free: 68.62 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.405e-05/1.47, allocations: 31.34 kB / 1.432 GB, free: 68.62 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007247/1.471, allocations: 354.9 kB / 1.432 GB, free: 68.61 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/1.474, allocations: 2.05 MB / 1.434 GB, free: 67.14 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008461/1.474, allocations: 365.7 kB / 1.435 GB, free: 67.07 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001141/1.475, allocations: 90.88 kB / 1.435 GB, free: 66.98 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/1.475, allocations: 37.06 kB / 1.435 GB, free: 66.94 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=22): time 1.993e-06/1.475, allocations: 0 / 1.435 GB, free: 66.94 MB / 0.9011 GB Notification: Performance of matching and sorting (n=34): time 0.005689/1.48, allocations: 1.766 MB / 1.437 GB, free: 66.63 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/1.48, allocations: 89.78 kB / 1.437 GB, free: 66.53 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/1.481, allocations: 206.2 kB / 1.437 GB, free: 66.43 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/1.481, allocations: 34.42 kB / 1.437 GB, free: 66.4 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/1.481, allocations: 185.7 kB / 1.437 GB, free: 66.26 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 9.518e-05/1.481, allocations: 118.2 kB / 1.437 GB, free: 66.19 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.216e-05/1.481, allocations: 5.062 kB / 1.437 GB, free: 66.19 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000108/1.481, allocations: 338.4 kB / 1.437 GB, free: 65.88 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004224/1.481, allocations: 207.5 kB / 1.438 GB, free: 65.87 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004601/1.482, allocations: 305.7 kB / 1.438 GB, free: 65.75 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004689/1.482, allocations: 250.7 kB / 1.438 GB, free: 65.74 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/1.482, allocations: 4.969 kB / 1.438 GB, free: 65.74 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001406/1.484, allocations: 0.6787 MB / 1.439 GB, free: 65.62 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002812/1.484, allocations: 1.137 MB / 1.44 GB, free: 64.43 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/1.484, allocations: 7.062 kB / 1.44 GB, free: 64.43 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005687/1.485, allocations: 147 kB / 1.44 GB, free: 64.39 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/1.485, allocations: 98.91 kB / 1.44 GB, free: 64.39 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/1.488, allocations: 3.978 MB / 1.444 GB, free: 60.81 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/1.488, allocations: 44.61 kB / 1.444 GB, free: 60.81 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/1.488, allocations: 12.84 kB / 1.444 GB, free: 60.81 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/1.488, allocations: 4.094 kB / 1.444 GB, free: 60.81 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001377/1.49, allocations: 0.6385 MB / 1.445 GB, free: 60.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/1.49, allocations: 0 / 1.445 GB, free: 60.73 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003678/1.49, allocations: 150.2 kB / 1.445 GB, free: 60.69 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/1.49, allocations: 98.84 kB / 1.445 GB, free: 60.68 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000416/1.491, allocations: 1.108 MB / 1.446 GB, free: 59.64 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003348/1.491, allocations: 36.36 kB / 1.446 GB, free: 59.64 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/1.491, allocations: 16.98 kB / 1.446 GB, free: 59.64 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002591/1.491, allocations: 256.3 kB / 1.446 GB, free: 59.44 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/1.492, allocations: 35.11 kB / 1.446 GB, free: 59.42 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/1.493, allocations: 0.6262 MB / 1.447 GB, free: 59.33 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/1.493, allocations: 3.906 kB / 1.447 GB, free: 59.33 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.493, allocations: 7.953 kB / 1.447 GB, free: 59.32 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/1.493, allocations: 6.438 kB / 1.447 GB, free: 59.32 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/1.495, allocations: 1.229 MB / 1.448 GB, free: 58.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/1.495, allocations: 7.938 kB / 1.448 GB, free: 58.89 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/1.495, allocations: 68.94 kB / 1.448 GB, free: 58.89 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004076/1.495, allocations: 156.4 kB / 1.449 GB, free: 58.84 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/1.496, allocations: 15.05 kB / 1.449 GB, free: 58.84 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/1.498, allocations: 3.98 MB / 1.452 GB, free: 55.27 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/1.498, allocations: 12.11 kB / 1.452 GB, free: 55.27 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/1.499, allocations: 0.8885 MB / 1.453 GB, free: 54.8 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/1.499, allocations: 140.9 kB / 1.453 GB, free: 54.69 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/1.499, allocations: 7.406 kB / 1.453 GB, free: 54.69 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/1.499, allocations: 33.42 kB / 1.453 GB, free: 54.69 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/1.5, allocations: 45.33 kB / 1.454 GB, free: 54.68 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/1.5, allocations: 7.781 kB / 1.454 GB, free: 54.68 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001454/1.5, allocations: 171.9 kB / 1.454 GB, free: 54.6 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.31e-07/1.5, allocations: 0 / 1.454 GB, free: 54.6 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0008298/1.501, allocations: 177.1 kB / 1.454 GB, free: 54.59 MB / 0.9011 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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000276/1.501, allocations: 152.7 kB / 1.454 GB, free: 54.48 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001776/1.503, allocations: 1.225 MB / 1.455 GB, free: 54.01 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.503, allocations: 0 / 1.455 GB, free: 54.01 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0006179/1.503, allocations: 0.4973 MB / 1.456 GB, free: 53.76 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/1.504, allocations: 58.19 kB / 1.456 GB, free: 53.76 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/1.505, allocations: 0.8516 MB / 1.457 GB, free: 53.32 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/1.505, allocations: 0.8104 MB / 1.457 GB, free: 52.62 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003399/1.505, allocations: 118.7 kB / 1.457 GB, free: 52.61 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.478e-05/1.506, allocations: 27.06 kB / 1.457 GB, free: 52.6 MB / 0.9011 GB Notification: Performance of SimCode: time 6.01e-07/1.506, allocations: 4 kB / 1.458 GB, free: 52.59 MB / 0.9011 GB Notification: Performance of Templates: time 0.009212/1.515, allocations: 5.426 MB / 1.463 GB, free: 52.26 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Conversion_Examples_ACDCConverter.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Conversion.Examples.ACDCConverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches