Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.359/2.359, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.001056/0.001056, allocations: 176.9 kB / 492.3 MB, free: 0.6094 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.455/1.455, allocations: 221.3 MB / 0.7871 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.0008192/0.0008192, allocations: 95.84 kB / 0.9267 GB, free: 13.92 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.677e-05/2.68e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2644, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9021/1.167, allocations: 175.7 MB / 1.384 GB, free: 18.83 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/1.167, allocations: 93.88 kB / 1.384 GB, free: 18.81 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.04247/1.209, allocations: 22.06 MB / 1.406 GB, free: 21.68 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.943e-06/1.209, allocations: 0 / 1.406 GB, free: 21.68 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.964e-05/1.209, allocations: 11.44 kB / 1.406 GB, free: 21.68 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0006879/1.21, allocations: 0.5437 MB / 1.406 GB, free: 21.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/1.21, allocations: 12.03 kB / 1.406 GB, free: 21.1 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009829/1.211, allocations: 143.3 kB / 1.406 GB, free: 20.96 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/1.211, allocations: 287.2 kB / 1.407 GB, free: 20.66 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/1.211, allocations: 22.91 kB / 1.407 GB, free: 20.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/1.212, allocations: 33.86 kB / 1.407 GB, free: 20.63 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005336/1.212, allocations: 455.8 kB / 1.407 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/1.212, allocations: 0 / 1.407 GB, free: 20.27 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.711e-05/1.212, allocations: 11.44 kB / 1.407 GB, free: 20.26 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.673e-05/1.212, allocations: 24.55 kB / 1.407 GB, free: 20.24 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/1.213, allocations: 308.6 kB / 1.407 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/1.214, allocations: 2.196 MB / 1.41 GB, free: 17.83 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/1.215, allocations: 243.4 kB / 1.41 GB, free: 17.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/1.215, allocations: 111.2 kB / 1.41 GB, free: 17.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/1.215, allocations: 0 / 1.41 GB, free: 17.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/1.215, allocations: 40.31 kB / 1.41 GB, free: 17.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/1.215, allocations: 3.938 kB / 1.41 GB, free: 17.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.000319/1.215, allocations: 161.8 kB / 1.41 GB, free: 17.34 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/1.215, allocations: 55.39 kB / 1.41 GB, free: 17.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/1.215, allocations: 240.1 kB / 1.41 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/1.215, allocations: 28.7 kB / 1.41 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.708e-05/1.216, allocations: 205.3 kB / 1.411 GB, free: 16.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/1.216, allocations: 53.98 kB / 1.411 GB, free: 16.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-06/1.216, allocations: 3.312 kB / 1.411 GB, free: 16.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001114/1.216, allocations: 341.7 kB / 1.411 GB, free: 16.48 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.837e-05/1.216, allocations: 54.02 kB / 1.411 GB, free: 16.45 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001026/1.216, allocations: 137.6 kB / 1.411 GB, free: 16.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/1.216, allocations: 81.41 kB / 1.411 GB, free: 16.24 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/1.216, allocations: 0 / 1.411 GB, free: 16.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003586/1.216, allocations: 256.9 kB / 1.411 GB, free: 16.02 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/1.216, allocations: 8.375 kB / 1.411 GB, free: 16.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/1.216, allocations: 8 kB / 1.411 GB, free: 16.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001467/1.217, allocations: 24.34 kB / 1.412 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/1.217, allocations: 51.55 kB / 1.412 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007872/1.218, allocations: 1.318 MB / 1.413 GB, free: 14.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/1.218, allocations: 30.89 kB / 1.413 GB, free: 14.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/1.218, allocations: 11.5 kB / 1.413 GB, free: 14.51 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/1.218, allocations: 116.6 kB / 1.413 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/1.218, allocations: 23.81 kB / 1.413 GB, free: 14.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.974e-05/1.218, allocations: 32.52 kB / 1.413 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/1.218, allocations: 0 / 1.413 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/1.218, allocations: 0 / 1.413 GB, free: 14.35 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/1.218, allocations: 4 kB / 1.413 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008358/1.219, allocations: 0.7078 MB / 1.414 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/1.219, allocations: 4 kB / 1.414 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.63e-05/1.219, allocations: 27.86 kB / 1.414 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.708e-05/1.219, allocations: 23.72 kB / 1.414 GB, free: 13.59 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/1.219, allocations: 11.75 kB / 1.414 GB, free: 13.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008476/1.22, allocations: 1.31 MB / 1.415 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/1.22, allocations: 4.031 kB / 1.415 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/1.22, allocations: 387.8 kB / 1.415 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/1.22, allocations: 116.3 kB / 1.416 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/1.22, allocations: 3.438 kB / 1.416 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/1.221, allocations: 15.31 kB / 1.416 GB, free: 11.63 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/1.221, allocations: 15.94 kB / 1.416 GB, free: 11.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/1.221, allocations: 6.938 kB / 1.416 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000179/1.221, allocations: 191.8 kB / 1.416 GB, free: 11.46 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.221, allocations: 3.938 kB / 1.416 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003792/1.221, allocations: 75.06 kB / 1.416 GB, free: 11.38 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001369/1.221, allocations: 111.2 kB / 1.416 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004242/1.222, allocations: 264.2 kB / 1.416 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.222, allocations: 0 / 1.416 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001866/1.222, allocations: 181.5 kB / 1.416 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/1.222, allocations: 64 kB / 1.416 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005942/1.223, allocations: 373.1 kB / 1.417 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/1.223, allocations: 0.8013 MB / 1.418 GB, free: 9.633 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001557/1.223, allocations: 42.05 kB / 1.418 GB, free: 9.59 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.733e-05/1.224, allocations: 19.44 kB / 1.418 GB, free: 9.57 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.224, allocations: 0 / 1.418 GB, free: 9.57 MB / 0.8386 GB Notification: Performance of Templates: time 0.005366/1.229, allocations: 2.5 MB / 1.42 GB, free: 7.117 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches