Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.007721/0.007721, allocations: 96.19 kB / 15.87 MB, free: 6.297 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.00213/0.002131, allocations: 205 kB / 16.79 MB, free: 6.223 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.654/2.654, allocations: 461.9 MB / 0.7348 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 69.69 kB / 0.8991 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3078, allocations: 157.4 MB / 1.053 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004519/0.3124, allocations: 2.705 MB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002355/0.3147, allocations: 1.325 MB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.3149, allocations: 3.938 kB / 1.057 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0007222/0.3157, allocations: 159.5 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004874/0.3162, allocations: 163.4 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/0.3167, allocations: 149.5 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000449/0.3172, allocations: 363 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003983/0.3176, allocations: 153.4 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.3178, allocations: 91.62 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.3181, allocations: 123.6 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.3181, allocations: 11.94 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003498/0.3185, allocations: 191.6 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.34e-05/0.3186, allocations: 63.81 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.3187, allocations: 87.53 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.3191, allocations: 223.8 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3191, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3191, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.3191, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 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.0009583/0.3201, allocations: 0.4911 MB / 1.059 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.3201, allocations: 11.97 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005638/0.3207, allocations: 72.58 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.321, allocations: 242.5 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.3211, allocations: 16.64 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.3211, allocations: 12.38 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005566/0.3216, allocations: 297 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3217, allocations: 3.938 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.605e-05/0.3217, allocations: 12 kB / 1.06 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.938e-05/0.3218, allocations: 28.25 kB / 1.06 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005118/0.3223, allocations: 252.6 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.324, allocations: 1.506 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.3246, allocations: 253 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.3248, allocations: 133.6 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.3248, allocations: 0 / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3249, allocations: 38.55 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 3.036e-06/0.3249, allocations: 0 / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0007602/0.3257, allocations: 343.5 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/0.3257, allocations: 89.16 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.3259, allocations: 171.2 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.3259, allocations: 29.7 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.326, allocations: 140 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.706e-05/0.3261, allocations: 55.28 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.3262, allocations: 53.59 kB / 1.062 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3263, allocations: 330.8 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.3266, allocations: 112.8 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.3268, allocations: 155.7 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005243/0.3273, allocations: 280.8 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3273, allocations: 4 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006298/0.328, allocations: 313.1 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.328, allocations: 4 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.328, allocations: 3.938 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.3281, allocations: 4 kB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003028/0.3284, allocations: 52.17 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.3284, allocations: 11.94 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.3286, allocations: 31.81 kB / 1.064 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.3286, allocations: 8 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002596/0.3289, allocations: 200 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000241/0.3292, allocations: 153.4 kB / 1.064 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003964/0.3296, allocations: 250.6 kB / 1.064 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.204e-06/0.3296, allocations: 0 / 1.064 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005124/0.3301, allocations: 289.2 kB / 1.065 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/0.3301, allocations: 4 kB / 1.065 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3301, allocations: 8 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5e-06/0.3301, allocations: 4 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.3303, allocations: 51.89 kB / 1.065 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.3304, allocations: 4 kB / 1.065 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.3305, allocations: 27.83 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.3305, allocations: 8 kB / 1.065 GB, free: 11.53 MB / 0.8262 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.0001435/0.3307, allocations: 204.2 kB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.843e-05/0.3308, allocations: 11.91 kB / 1.065 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005504/0.3313, allocations: 274.8 kB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3313, allocations: 4 kB / 1.065 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3313, allocations: 0 / 1.065 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3314, allocations: 3.984 kB / 1.065 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.3324, allocations: 0.6733 MB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3324, allocations: 4 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.3326, allocations: 43.94 kB / 1.066 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.3327, allocations: 4 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.3327, allocations: 11.94 kB / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3327, allocations: 4.125 kB / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.3327, allocations: 7.938 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.3332, allocations: 449.8 kB / 1.066 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.3334, allocations: 108.8 kB / 1.066 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.3334, allocations: 11.94 kB / 1.066 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.3336, allocations: 19.97 kB / 1.066 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.3337, allocations: 15.92 kB / 1.066 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.3337, allocations: 4 kB / 1.066 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001145/0.3338, allocations: 135.2 kB / 1.067 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3338, allocations: 4 kB / 1.067 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004809/0.3343, allocations: 79.84 kB / 1.067 GB, free: 9.352 MB / 0.8262 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.000118/0.3344, allocations: 99.25 kB / 1.067 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007331/0.3352, allocations: 378.9 kB / 1.067 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3352, allocations: 0 / 1.067 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.3354, allocations: 111.9 kB / 1.067 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.3359, allocations: 45.41 kB / 1.067 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008341/0.3367, allocations: 0.5317 MB / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.3372, allocations: 0.7479 MB / 1.069 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.969e-05/0.3373, allocations: 23.44 kB / 1.069 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3373, allocations: 0 / 1.069 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of Templates: time 0.004243/0.3415, allocations: 2.572 MB / 1.071 GB, free: 4.785 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches