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.001621/0.001622, allocations: 105.3 kB / 16.27 MB, free: 6.41 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.001515/0.001515, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.448/1.448, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.532/2.532, allocations: 437.1 MB / 0.7111 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 67.86 kB / 0.8699 GB, free: 2.168 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.283, allocations: 151.6 MB / 1.018 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.00437/0.2874, allocations: 2.642 MB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002176/0.2896, allocations: 1.309 MB / 1.022 GB, free: 6.641 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.2897, allocations: 7.938 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006551/0.2905, allocations: 187.9 kB / 1.022 GB, free: 6.449 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.2908, allocations: 167.2 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.2912, allocations: 163.6 kB / 1.022 GB, free: 6.129 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.2915, allocations: 263.1 kB / 1.023 GB, free: 5.871 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.2919, allocations: 141.5 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.292, allocations: 103.6 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002598/0.2923, allocations: 131.5 kB / 1.023 GB, free: 5.496 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.2923, allocations: 16 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.2926, allocations: 151.6 kB / 1.023 GB, free: 5.332 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.423e-05/0.2927, allocations: 63.81 kB / 1.023 GB, free: 5.27 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2928, allocations: 91.53 kB / 1.023 GB, free: 5.18 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003673/0.2932, allocations: 283.4 kB / 1.024 GB, free: 4.902 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2932, allocations: 4 kB / 1.024 GB, free: 4.898 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.136e-06/0.2932, allocations: 4 kB / 1.024 GB, free: 4.895 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.2932, allocations: 3.938 kB / 1.024 GB, free: 4.891 MB / 0.795 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.000803/0.294, allocations: 0.4911 MB / 1.024 GB, free: 4.348 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.2941, allocations: 8.922 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004903/0.2946, allocations: 68.58 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.2949, allocations: 239.8 kB / 1.024 GB, free: 4 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.2949, allocations: 12.66 kB / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.2949, allocations: 16.38 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005386/0.2955, allocations: 308.8 kB / 1.025 GB, free: 3.645 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.2955, allocations: 0 / 1.025 GB, free: 3.645 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.2955, allocations: 11.98 kB / 1.025 GB, free: 3.633 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.464e-05/0.2956, allocations: 28.27 kB / 1.025 GB, free: 3.605 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005195/0.2961, allocations: 260.5 kB / 1.025 GB, free: 3.352 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.2978, allocations: 1.498 MB / 1.026 GB, free: 1.707 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005186/0.2984, allocations: 253.1 kB / 1.027 GB, free: 1.441 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.2986, allocations: 129.6 kB / 1.027 GB, free: 1.309 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.2987, allocations: 11.98 kB / 1.027 GB, free: 1.297 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.2987, allocations: 34.5 kB / 1.027 GB, free: 1.254 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.2987, allocations: 0 / 1.027 GB, free: 1.254 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0008547/0.2996, allocations: 345.2 kB / 1.027 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.2997, allocations: 81.23 kB / 1.027 GB, free: 0.8125 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.2999, allocations: 179.4 kB / 1.027 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.2999, allocations: 25.7 kB / 1.027 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.3001, allocations: 144 kB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/0.3001, allocations: 47.3 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.3003, allocations: 49.61 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001852/0.3004, allocations: 326.8 kB / 1.028 GB, free: 24 kB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.3007, allocations: 112.8 kB / 1.028 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.301, allocations: 162.1 kB / 1.028 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005342/0.3016, allocations: 280.9 kB / 1.028 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3016, allocations: 0 / 1.028 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006323/0.3022, allocations: 313.1 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.3023, allocations: 8 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.3023, allocations: 4 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.3023, allocations: 4 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.3026, allocations: 55.89 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.3026, allocations: 4.203 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.3029, allocations: 35.83 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.3029, allocations: 11.98 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003096/0.3032, allocations: 192.7 kB / 1.029 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002537/0.3035, allocations: 160.5 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004277/0.3039, allocations: 254.1 kB / 1.029 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.312e-06/0.3039, allocations: 0 / 1.029 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005219/0.3045, allocations: 277.4 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.3045, allocations: 7.938 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3045, allocations: 4 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.337e-06/0.3045, allocations: 3.938 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.3047, allocations: 51.95 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3047, allocations: 7.938 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.3049, allocations: 27.81 kB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3049, allocations: 15.98 kB / 1.03 GB, free: 13.95 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.0001468/0.3051, allocations: 192.2 kB / 1.03 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.13e-05/0.3052, allocations: 11.91 kB / 1.03 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000583/0.3057, allocations: 281.1 kB / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3058, allocations: 0 / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3058, allocations: 0 / 1.03 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.3058, allocations: 4 kB / 1.03 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.3069, allocations: 0.6733 MB / 1.031 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3069, allocations: 0 / 1.031 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.3072, allocations: 47.95 kB / 1.031 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.183e-06/0.3072, allocations: 4 kB / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3072, allocations: 11.81 kB / 1.031 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.3072, allocations: 7.938 kB / 1.031 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3072, allocations: 4.125 kB / 1.031 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005855/0.3078, allocations: 449.9 kB / 1.031 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3079, allocations: 116.8 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.683e-05/0.308, allocations: 7.938 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.3082, allocations: 19.92 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.3082, allocations: 11.98 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.3083, allocations: 7.984 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001181/0.3084, allocations: 131.8 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3084, allocations: 0 / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000481/0.3089, allocations: 87.84 kB / 1.032 GB, free: 11.79 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.0001253/0.309, allocations: 99.25 kB / 1.032 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007779/0.3098, allocations: 385.9 kB / 1.032 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3098, allocations: 4.062 kB / 1.032 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002296/0.31, allocations: 115.8 kB / 1.032 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.3105, allocations: 41.75 kB / 1.032 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008584/0.3114, allocations: 492.2 kB / 1.033 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.3118, allocations: 0.7402 MB / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-05/0.3119, allocations: 27.42 kB / 1.034 GB, free: 9.828 MB / 0.8106 GB Notification: Performance of SimCode: time 3.3e-07/0.3119, allocations: 4 kB / 1.034 GB, free: 9.824 MB / 0.8106 GB Notification: Performance of Templates: time 0.004833/0.3168, allocations: 2.57 MB / 1.036 GB, free: 7.262 MB / 0.8106 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/jenkins1/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