Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R.i.1.|R.i.2.|R1.i.1.|R1.i.2.|source.S.1.|source.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R.i.1.|R.i.2.|R1.i.1.|R1.i.2.|source.S.1.|source.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01246/0.01246, allocations: 107.5 kB / 15.74 MB, free: 6.035 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.001719/0.001719, allocations: 195.6 kB / 16.67 MB, free: 5.969 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.617/1.617, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.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.629/2.629, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.05 kB / 0.9508 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3235, allocations: 140.4 MB / 1.088 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004307/0.3279, allocations: 2.644 MB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002036/0.3299, allocations: 1.317 MB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.33, allocations: 11.94 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007795/0.3309, allocations: 180.8 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003857/0.3312, allocations: 155.3 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003854/0.3316, allocations: 167.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.332, allocations: 267.1 kB / 1.093 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003393/0.3323, allocations: 141.4 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.3325, allocations: 111.7 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.3328, allocations: 119.6 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.3328, allocations: 16 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002571/0.3331, allocations: 151.6 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.927e-05/0.3332, allocations: 63.81 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.3333, allocations: 95.52 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003993/0.3337, allocations: 291 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3337, allocations: 0 / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3337, allocations: 0 / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.291e-05/0.3338, allocations: 8 kB / 1.093 GB, free: 11.81 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008172/0.3346, allocations: 498.9 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3346, allocations: 8.031 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005016/0.3351, allocations: 68.58 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.3355, allocations: 246.2 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.3355, allocations: 8.656 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.3355, allocations: 20.38 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.336, allocations: 304.9 kB / 1.095 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3361, allocations: 0 / 1.095 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.3361, allocations: 7.984 kB / 1.095 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.978e-05/0.3362, allocations: 32.27 kB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004755/0.3366, allocations: 256.5 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.3382, allocations: 1.494 MB / 1.096 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.3388, allocations: 263.4 kB / 1.097 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.339, allocations: 125.6 kB / 1.097 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.3391, allocations: 11.97 kB / 1.097 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.3391, allocations: 30.56 kB / 1.097 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.3391, allocations: 0 / 1.097 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0007553/0.3399, allocations: 349.2 kB / 1.097 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3399, allocations: 77.11 kB / 1.097 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001638/0.3401, allocations: 179.2 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/0.3401, allocations: 25.7 kB / 1.097 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.379e-05/0.3402, allocations: 140 kB / 1.097 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.72e-05/0.3403, allocations: 55.19 kB / 1.098 GB, free: 7.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.237e-05/0.3403, allocations: 49.83 kB / 1.098 GB, free: 7.277 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3405, allocations: 326.8 kB / 1.098 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.3407, allocations: 108.8 kB / 1.098 GB, free: 6.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.341, allocations: 175.6 kB / 1.098 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.3415, allocations: 277.2 kB / 1.098 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3415, allocations: 0 / 1.098 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005488/0.342, allocations: 309.2 kB / 1.099 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3421, allocations: 12.22 kB / 1.099 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.371e-06/0.3421, allocations: 0 / 1.099 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.3421, allocations: 4 kB / 1.099 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.3424, allocations: 55.89 kB / 1.099 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.3424, allocations: 4 kB / 1.099 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.3426, allocations: 35.75 kB / 1.099 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.3426, allocations: 12 kB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002648/0.3429, allocations: 199.8 kB / 1.099 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000231/0.3431, allocations: 165.4 kB / 1.099 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003998/0.3435, allocations: 246.4 kB / 1.099 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.282e-06/0.3435, allocations: 0 / 1.099 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004739/0.344, allocations: 281.1 kB / 1.1 GB, free: 4.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.344, allocations: 4 kB / 1.1 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.3441, allocations: 4 kB / 1.1 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.02e-06/0.3441, allocations: 4 kB / 1.1 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.3443, allocations: 51.89 kB / 1.1 GB, free: 4.918 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3443, allocations: 4.25 kB / 1.1 GB, free: 4.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.3445, allocations: 31.83 kB / 1.1 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.3445, allocations: 11.98 kB / 1.1 GB, free: 4.871 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (23): * Single equations (assignments): 23 * 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.0001225/0.3446, allocations: 192.1 kB / 1.1 GB, free: 4.676 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.732e-05/0.3447, allocations: 15.81 kB / 1.1 GB, free: 4.66 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005284/0.3452, allocations: 267 kB / 1.1 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3452, allocations: 0 / 1.1 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3452, allocations: 11.98 kB / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3452, allocations: 0 / 1.1 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3462, allocations: 0.6732 MB / 1.101 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3463, allocations: 4 kB / 1.101 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.3465, allocations: 52.02 kB / 1.101 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.3465, allocations: 4 kB / 1.101 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.3465, allocations: 7.938 kB / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.3466, allocations: 0 / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.3466, allocations: 4 kB / 1.101 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005348/0.3471, allocations: 452.8 kB / 1.101 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.3472, allocations: 112.8 kB / 1.102 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.3473, allocations: 11.92 kB / 1.102 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.3475, allocations: 23.98 kB / 1.102 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.3475, allocations: 11.98 kB / 1.102 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3475, allocations: 4 kB / 1.102 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001119/0.3477, allocations: 131.2 kB / 1.102 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3477, allocations: 4 kB / 1.102 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000446/0.3481, allocations: 79.84 kB / 1.102 GB, free: 2.711 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 16 * 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.0001341/0.3483, allocations: 103.2 kB / 1.102 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007046/0.349, allocations: 383.5 kB / 1.102 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.349, allocations: 0 / 1.102 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.3492, allocations: 117 kB / 1.102 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.3497, allocations: 52.33 kB / 1.102 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007922/0.3505, allocations: 450.2 kB / 1.103 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.3509, allocations: 0.7441 MB / 1.104 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001766/0.3511, allocations: 73.47 kB / 1.104 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.463e-05/0.3512, allocations: 19.42 kB / 1.104 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of SimCode: time 5.21e-07/0.3512, allocations: 4 kB / 1.104 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of Templates: time 0.005121/0.3563, allocations: 2.367 MB / 1.106 GB, free: 14.37 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches