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.001248/0.001248, allocations: 108.9 kB / 16.37 MB, free: 6.465 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.001202/0.001203, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.475/1.475, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.624/2.624, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 55.84 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3604/0.3618, allocations: 153 MB / 1.027 GB, free: 2.086 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004586/0.3664, allocations: 2.657 MB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002049/0.3685, allocations: 1.328 MB / 1.031 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.3686, allocations: 4 kB / 1.031 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0006878/0.3693, allocations: 187.1 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000416/0.3698, allocations: 163.3 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.3702, allocations: 163.6 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003133/0.3705, allocations: 259.2 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.3708, allocations: 137.5 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.371, allocations: 107.6 kB / 1.032 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000262/0.3713, allocations: 119.6 kB / 1.032 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.3713, allocations: 16 kB / 1.032 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002647/0.3716, allocations: 147.7 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.417e-05/0.3717, allocations: 71.81 kB / 1.032 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.3718, allocations: 91.52 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003662/0.3721, allocations: 291 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3722, allocations: 0 / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3722, allocations: 0 / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.3722, allocations: 0 / 1.032 GB, free: 12.36 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.000888/0.3731, allocations: 495 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3731, allocations: 12.03 kB / 1.033 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005604/0.3737, allocations: 76.56 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.3741, allocations: 243.9 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3741, allocations: 12.64 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.3741, allocations: 20.31 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.3747, allocations: 308.9 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.3747, allocations: 0 / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.3747, allocations: 7.984 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.383e-05/0.3748, allocations: 28.2 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.3753, allocations: 256.6 kB / 1.034 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.3769, allocations: 1.494 MB / 1.035 GB, free: 9.176 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004958/0.3774, allocations: 261 kB / 1.035 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.3777, allocations: 125.6 kB / 1.036 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.3777, allocations: 8 kB / 1.036 GB, free: 8.766 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.3777, allocations: 34.56 kB / 1.036 GB, free: 8.723 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.3777, allocations: 0 / 1.036 GB, free: 8.723 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.0007494/0.3785, allocations: 348 kB / 1.036 GB, free: 8.379 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.3786, allocations: 77.23 kB / 1.036 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001717/0.3788, allocations: 183.9 kB / 1.036 GB, free: 8.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.3788, allocations: 29.7 kB / 1.036 GB, free: 8.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.242e-05/0.3789, allocations: 140 kB / 1.036 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.3789, allocations: 55.23 kB / 1.036 GB, free: 7.863 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.77e-05/0.379, allocations: 49.55 kB / 1.036 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3792, allocations: 330.8 kB / 1.037 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.3794, allocations: 112.8 kB / 1.037 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002358/0.3796, allocations: 157.1 kB / 1.037 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.3801, allocations: 282.7 kB / 1.037 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3801, allocations: 0 / 1.037 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005255/0.3806, allocations: 312 kB / 1.038 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3807, allocations: 8 kB / 1.038 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3807, allocations: 3.938 kB / 1.038 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.3807, allocations: 4 kB / 1.038 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.381, allocations: 51.95 kB / 1.038 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.381, allocations: 7.922 kB / 1.038 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.3812, allocations: 36.05 kB / 1.038 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.3812, allocations: 11.98 kB / 1.038 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002666/0.3815, allocations: 192 kB / 1.038 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002148/0.3817, allocations: 163 kB / 1.038 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003696/0.3821, allocations: 247.5 kB / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.312e-06/0.3821, allocations: 0 / 1.038 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004803/0.3826, allocations: 277.4 kB / 1.039 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.3826, allocations: 10.38 kB / 1.039 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3826, allocations: 8 kB / 1.039 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.528e-06/0.3826, allocations: 4 kB / 1.039 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.3828, allocations: 51.89 kB / 1.039 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.3828, allocations: 4 kB / 1.039 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.383, allocations: 31.81 kB / 1.039 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.383, allocations: 4 kB / 1.039 GB, free: 5.418 MB / 0.8106 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.0001235/0.3832, allocations: 196.1 kB / 1.039 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.005e-05/0.3832, allocations: 15.91 kB / 1.039 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005215/0.3838, allocations: 277.7 kB / 1.039 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3838, allocations: 0 / 1.039 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.3838, allocations: 4 kB / 1.039 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3838, allocations: 0 / 1.039 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3848, allocations: 0.681 MB / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3848, allocations: 0 / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/0.3851, allocations: 47.89 kB / 1.04 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3851, allocations: 4 kB / 1.04 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.3851, allocations: 7.938 kB / 1.04 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.696e-06/0.3851, allocations: 4 kB / 1.04 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.3851, allocations: 0 / 1.04 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005341/0.3857, allocations: 457.9 kB / 1.04 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.3858, allocations: 116.8 kB / 1.04 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.3858, allocations: 11.94 kB / 1.04 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.386, allocations: 11.98 kB / 1.04 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.827e-05/0.3861, allocations: 15.98 kB / 1.04 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.3861, allocations: 11.92 kB / 1.04 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001114/0.3862, allocations: 131.8 kB / 1.041 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.823e-06/0.3862, allocations: 0 / 1.041 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004744/0.3867, allocations: 87.78 kB / 1.041 GB, free: 3.238 MB / 0.8106 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.0001219/0.3868, allocations: 103.2 kB / 1.041 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000676/0.3875, allocations: 372.3 kB / 1.041 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3875, allocations: 128 / 1.041 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002091/0.3878, allocations: 119.9 kB / 1.041 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004625/0.3882, allocations: 41.03 kB / 1.041 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008234/0.3891, allocations: 445.8 kB / 1.042 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.3895, allocations: 0.744 MB / 1.042 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002133/0.3897, allocations: 81.41 kB / 1.042 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.959e-05/0.3898, allocations: 19.42 kB / 1.042 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of SimCode: time 7.22e-07/0.3898, allocations: 4 kB / 1.042 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of Templates: time 0.00561/0.3954, allocations: 2.302 MB / 1.045 GB, free: 14.97 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 -s cvode -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