Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001651/0.001651, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002571/0.002571, allocations: 195.3 kB / 16.14 MB, free: 6.633 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.624/1.624, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.842/2.842, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 71.89 kB / 0.8686 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8531/0.8551, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.005265/0.8605, allocations: 2.699 MB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00241/0.8629, allocations: 1.321 MB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.863, allocations: 3.938 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000806/0.8639, allocations: 171.4 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004349/0.8643, allocations: 155.4 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004603/0.8648, allocations: 151.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004908/0.8653, allocations: 367 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004688/0.8658, allocations: 141.4 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002094/0.866, allocations: 91.62 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.8663, allocations: 135.5 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.8664, allocations: 8 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003686/0.8668, allocations: 183.6 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.8669, allocations: 63.8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.867, allocations: 83.53 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.8674, allocations: 301 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.8674, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.282e-06/0.8674, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.8675, allocations: 0 / 1.022 GB, free: 12.92 MB / 0.7794 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.001016/0.8685, allocations: 0.4951 MB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.8685, allocations: 8.031 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/0.8692, allocations: 68.58 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.8695, allocations: 247.7 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.8696, allocations: 8.656 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.8696, allocations: 16.36 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005985/0.8702, allocations: 308.9 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.8702, allocations: 3.938 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.8703, allocations: 8 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.083e-05/0.8703, allocations: 24.27 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.8709, allocations: 260.6 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.8728, allocations: 1.506 MB / 1.025 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005362/0.8733, allocations: 257.1 kB / 1.025 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002692/0.8736, allocations: 129.6 kB / 1.026 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.8737, allocations: 4 kB / 1.026 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.8737, allocations: 30.56 kB / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 3.346e-06/0.8737, allocations: 4 kB / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0008459/0.8746, allocations: 349 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.8746, allocations: 81.05 kB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/0.8748, allocations: 179.2 kB / 1.026 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.839e-05/0.8749, allocations: 25.7 kB / 1.026 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.875, allocations: 147.9 kB / 1.026 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.8751, allocations: 51.48 kB / 1.026 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.318e-05/0.8752, allocations: 49.61 kB / 1.026 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000179/0.8754, allocations: 322.8 kB / 1.027 GB, free: 8.039 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.8756, allocations: 116.8 kB / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.8759, allocations: 164.9 kB / 1.027 GB, free: 7.734 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005162/0.8764, allocations: 281 kB / 1.027 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.8765, allocations: 0 / 1.027 GB, free: 7.438 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006094/0.8771, allocations: 309.3 kB / 1.028 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.8771, allocations: 11.94 kB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.8771, allocations: 0 / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.8771, allocations: 4 kB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.8775, allocations: 59.94 kB / 1.028 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.379e-05/0.8775, allocations: 11.92 kB / 1.028 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.8777, allocations: 27.81 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/0.8777, allocations: 12 kB / 1.028 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003029/0.878, allocations: 192 kB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002489/0.8783, allocations: 158.6 kB / 1.028 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004636/0.8788, allocations: 253.4 kB / 1.028 GB, free: 6.355 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.452e-06/0.8788, allocations: 4 kB / 1.028 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005481/0.8793, allocations: 269.2 kB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.8794, allocations: 4 kB / 1.029 GB, free: 6.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.8794, allocations: 7.938 kB / 1.029 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.621e-06/0.8794, allocations: 4 kB / 1.029 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.8796, allocations: 56.14 kB / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.8796, allocations: 8 kB / 1.029 GB, free: 6.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.8798, allocations: 27.81 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.8798, allocations: 8 kB / 1.029 GB, free: 5.969 MB / 0.7794 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.0001994/0.88, allocations: 192.1 kB / 1.029 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.668e-05/0.8801, allocations: 11.91 kB / 1.029 GB, free: 5.762 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006972/0.8808, allocations: 284.1 kB / 1.029 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.8808, allocations: 0 / 1.029 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.8809, allocations: 4 kB / 1.029 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.8809, allocations: 0 / 1.029 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.8822, allocations: 0.6772 MB / 1.03 GB, free: 4.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.8822, allocations: 8.031 kB / 1.03 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.8825, allocations: 39.95 kB / 1.03 GB, free: 4.688 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-06/0.8825, allocations: 4 kB / 1.03 GB, free: 4.684 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.8825, allocations: 7.938 kB / 1.03 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.8825, allocations: 3.938 kB / 1.03 GB, free: 4.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.8825, allocations: 7.938 kB / 1.03 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007314/0.8833, allocations: 446.9 kB / 1.03 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.8834, allocations: 112.9 kB / 1.03 GB, free: 4.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.251e-05/0.8834, allocations: 11.94 kB / 1.03 GB, free: 4.059 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.8837, allocations: 23.97 kB / 1.03 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/0.8838, allocations: 19.91 kB / 1.03 GB, free: 4.016 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.8838, allocations: 8 kB / 1.03 GB, free: 4.008 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001509/0.8839, allocations: 127.2 kB / 1.031 GB, free: 3.883 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.884, allocations: 4 kB / 1.031 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005459/0.8845, allocations: 79.84 kB / 1.031 GB, free: 3.801 MB / 0.7794 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.0001823/0.8847, allocations: 115.1 kB / 1.031 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000852/0.8856, allocations: 364.8 kB / 1.031 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.8856, allocations: 0 / 1.031 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002528/0.8858, allocations: 120.9 kB / 1.031 GB, free: 3.203 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005315/0.8864, allocations: 42.75 kB / 1.031 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.8874, allocations: 0.506 MB / 1.032 GB, free: 2.617 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00054/0.888, allocations: 0.7518 MB / 1.032 GB, free: 1.84 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002484/0.8882, allocations: 73.47 kB / 1.033 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.8883, allocations: 19.44 kB / 1.033 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.8883, allocations: 0 / 1.033 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of Templates: time 0.006688/0.895, allocations: 2.163 MB / 1.035 GB, free: 15.61 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches