Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.209/2.209, allocations: 387.1 MB / 399.7 MB, free: 9.469 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.0009647/0.000965, allocations: 180.9 kB / 492.3 MB, free: 0.6016 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.492/1.492, allocations: 221.3 MB / 0.7872 GB, free: 12.86 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.0008513/0.0008512, allocations: 92.77 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.977e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2934, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9736/1.267, allocations: 177.4 MB / 1.386 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/1.267, allocations: 84.64 kB / 1.386 GB, free: 18.45 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.04828/1.316, allocations: 23.75 MB / 1.409 GB, free: 18.87 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.183e-06/1.316, allocations: 0 / 1.409 GB, free: 18.87 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.321e-05/1.316, allocations: 12.12 kB / 1.409 GB, free: 18.86 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008572/1.317, allocations: 0.5927 MB / 1.409 GB, free: 18.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/1.317, allocations: 12.03 kB / 1.409 GB, free: 18.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006894/1.317, allocations: 99.41 kB / 1.41 GB, free: 18.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/1.318, allocations: 295.4 kB / 1.41 GB, free: 17.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/1.318, allocations: 23.34 kB / 1.41 GB, free: 17.81 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/1.318, allocations: 31.3 kB / 1.41 GB, free: 17.79 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/1.318, allocations: 445.7 kB / 1.41 GB, free: 17.43 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/1.318, allocations: 0 / 1.41 GB, free: 17.43 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.423e-05/1.318, allocations: 11.31 kB / 1.41 GB, free: 17.43 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.435e-05/1.318, allocations: 40.27 kB / 1.41 GB, free: 17.39 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004097/1.319, allocations: 313.2 kB / 1.411 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/1.321, allocations: 2.066 MB / 1.413 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004402/1.321, allocations: 190.2 kB / 1.413 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/1.321, allocations: 128.8 kB / 1.413 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/1.321, allocations: 8 kB / 1.413 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/1.321, allocations: 42.05 kB / 1.413 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/1.321, allocations: 0 / 1.413 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0004276/1.322, allocations: 194.7 kB / 1.413 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/1.322, allocations: 55.36 kB / 1.413 GB, free: 14.59 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/1.322, allocations: 233.3 kB / 1.414 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/1.322, allocations: 29.7 kB / 1.414 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000119/1.322, allocations: 212.1 kB / 1.414 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.781e-05/1.322, allocations: 65.72 kB / 1.414 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/1.322, allocations: 7.75 kB / 1.414 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.323, allocations: 329.6 kB / 1.414 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/1.323, allocations: 70.3 kB / 1.414 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/1.323, allocations: 172.3 kB / 1.414 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/1.323, allocations: 94.73 kB / 1.414 GB, free: 13.49 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.323, allocations: 8 kB / 1.414 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004639/1.323, allocations: 300.1 kB / 1.415 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004984/1.324, allocations: 1.399 MB / 1.416 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/1.324, allocations: 4 kB / 1.416 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001698/1.324, allocations: 31.58 kB / 1.416 GB, free: 11.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/1.324, allocations: 71.22 kB / 1.416 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003859/1.325, allocations: 0.5528 MB / 1.417 GB, free: 11.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/1.325, allocations: 46.67 kB / 1.417 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/1.325, allocations: 11.19 kB / 1.417 GB, free: 11.03 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.925e-06/1.325, allocations: 7.938 kB / 1.417 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003472/1.326, allocations: 233.3 kB / 1.417 GB, free: 10.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/1.326, allocations: 4 kB / 1.417 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.981e-06/1.326, allocations: 4 kB / 1.417 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/1.326, allocations: 83.73 kB / 1.417 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/1.326, allocations: 4 kB / 1.417 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/1.326, allocations: 43.48 kB / 1.417 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/1.326, allocations: 11.98 kB / 1.417 GB, free: 10.71 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001055/1.326, allocations: 135.1 kB / 1.417 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/1.326, allocations: 23.72 kB / 1.417 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.796e-05/1.326, allocations: 27.95 kB / 1.417 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/1.326, allocations: 8 kB / 1.417 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/1.326, allocations: 0 / 1.417 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.326, allocations: 0 / 1.417 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009527/1.327, allocations: 0.7087 MB / 1.418 GB, free: 9.859 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/1.327, allocations: 4 kB / 1.418 GB, free: 9.855 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/1.328, allocations: 43.91 kB / 1.418 GB, free: 9.812 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.359e-05/1.328, allocations: 24.72 kB / 1.418 GB, free: 9.789 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/1.328, allocations: 7.75 kB / 1.418 GB, free: 9.785 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/1.329, allocations: 1.318 MB / 1.419 GB, free: 8.387 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.329, allocations: 4.156 kB / 1.419 GB, free: 8.383 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004127/1.329, allocations: 342 kB / 1.42 GB, free: 8.059 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/1.329, allocations: 123.7 kB / 1.42 GB, free: 7.926 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/1.329, allocations: 4 kB / 1.42 GB, free: 7.922 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/1.33, allocations: 19.86 kB / 1.42 GB, free: 7.906 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.565e-05/1.33, allocations: 19.66 kB / 1.42 GB, free: 7.891 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/1.33, allocations: 4 kB / 1.42 GB, free: 7.887 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001894/1.33, allocations: 178.6 kB / 1.42 GB, free: 7.738 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.33, allocations: 0 / 1.42 GB, free: 7.738 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000568/1.331, allocations: 146.7 kB / 1.42 GB, free: 7.605 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001518/1.331, allocations: 109.5 kB / 1.42 GB, free: 7.496 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005901/1.331, allocations: 306.9 kB / 1.421 GB, free: 7.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.331, allocations: 4 kB / 1.421 GB, free: 7.266 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002764/1.332, allocations: 197.8 kB / 1.421 GB, free: 7.082 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/1.332, allocations: 69.83 kB / 1.421 GB, free: 7.031 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007585/1.333, allocations: 379.2 kB / 1.421 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/1.333, allocations: 0.8035 MB / 1.422 GB, free: 5.852 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003077/1.334, allocations: 81.98 kB / 1.422 GB, free: 5.773 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.806e-05/1.334, allocations: 23.19 kB / 1.422 GB, free: 5.754 MB / 0.8386 GB Notification: Performance of SimCode: time 8.42e-07/1.334, allocations: 0 / 1.422 GB, free: 5.754 MB / 0.8386 GB Notification: Performance of Templates: time 0.008194/1.342, allocations: 3.308 MB / 1.425 GB, free: 2.484 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches