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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001188/0.001188, allocations: 115.2 kB / 16.37 MB, free: 6 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.001127/0.001127, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.413/1.413, 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 9.1.2-maint.9.1.x/package.mo): time 2.227/2.227, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.17 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2945, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004623/0.2991, allocations: 2.65 MB / 0.9537 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002912/0.3021, allocations: 1.309 MB / 0.955 GB, free: 4.102 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.3023, allocations: 7.938 kB / 0.955 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009809/0.3034, allocations: 179.2 kB / 0.9552 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005258/0.304, allocations: 167.3 kB / 0.9553 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00053/0.3045, allocations: 163.2 kB / 0.9555 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.3049, allocations: 263.1 kB / 0.9557 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003651/0.3052, allocations: 157.4 kB / 0.9559 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.3054, allocations: 99.66 kB / 0.956 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002538/0.3057, allocations: 131.5 kB / 0.9561 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.3057, allocations: 16 kB / 0.9561 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002569/0.306, allocations: 143.6 kB / 0.9563 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.3061, allocations: 71.8 kB / 0.9563 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.3062, allocations: 87.53 kB / 0.9564 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.3066, allocations: 299 kB / 0.9567 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3066, allocations: 0 / 0.9567 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.424e-06/0.3066, allocations: 4 kB / 0.9567 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.3066, allocations: 0 / 0.9567 GB, free: 2.344 MB / 0.7325 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.000769/0.3074, allocations: 499 kB / 0.9572 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3075, allocations: 8.031 kB / 0.9572 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005027/0.308, allocations: 68.58 kB / 0.9573 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.3083, allocations: 249.8 kB / 0.9575 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.3083, allocations: 8.656 kB / 0.9575 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.3083, allocations: 12.38 kB / 0.9575 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/0.3089, allocations: 304.9 kB / 0.9578 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3089, allocations: 4 kB / 0.9578 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.693e-05/0.3089, allocations: 11.98 kB / 0.9578 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.636e-05/0.309, allocations: 28.27 kB / 0.9578 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000494/0.3095, allocations: 256.5 kB / 0.9581 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.3111, allocations: 1.498 MB / 0.9596 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004822/0.3116, allocations: 257.1 kB / 0.9598 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.3119, allocations: 125.6 kB / 0.9599 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.3119, allocations: 7.906 kB / 0.9599 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/0.3119, allocations: 38.56 kB / 0.96 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.312, allocations: 0 / 0.96 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of matching and sorting (n=15): time 0.0007564/0.3127, allocations: 345.2 kB / 0.9603 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.3128, allocations: 81.11 kB / 0.9604 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.3129, allocations: 175.2 kB / 0.9605 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.313, allocations: 29.7 kB / 0.9606 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 9.352e-05/0.3131, allocations: 148.1 kB / 0.9607 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.095e-05/0.3131, allocations: 47.3 kB / 0.9608 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.627e-05/0.3132, allocations: 49.61 kB / 0.9608 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3133, allocations: 326.8 kB / 0.9611 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.3135, allocations: 108.8 kB / 0.9612 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.3138, allocations: 171.5 kB / 0.9614 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004398/0.3143, allocations: 270.7 kB / 0.9616 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3143, allocations: 7.938 kB / 0.9616 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000536/0.3148, allocations: 312.2 kB / 0.9619 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3148, allocations: 4 kB / 0.9619 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.3149, allocations: 8 kB / 0.962 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.3149, allocations: 4 kB / 0.962 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.3152, allocations: 55.88 kB / 0.962 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.3152, allocations: 4 kB / 0.962 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.3154, allocations: 35.73 kB / 0.962 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.3154, allocations: 7.984 kB / 0.9621 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002617/0.3157, allocations: 204.1 kB / 0.9623 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000222/0.3159, allocations: 155.7 kB / 0.9624 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003789/0.3163, allocations: 251.5 kB / 0.9626 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.523e-06/0.3163, allocations: 4 kB / 0.9626 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004754/0.3168, allocations: 269.2 kB / 0.9629 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.3168, allocations: 8 kB / 0.9629 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-06/0.3168, allocations: 0 / 0.9629 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-06/0.3169, allocations: 4 kB / 0.9629 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.3171, allocations: 60.14 kB / 0.963 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.3171, allocations: 0 / 0.963 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.3172, allocations: 31.81 kB / 0.963 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.3173, allocations: 12 kB / 0.963 GB, free: 11.41 MB / 0.7481 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.0001153/0.3174, allocations: 192.1 kB / 0.9632 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-05/0.3175, allocations: 15.81 kB / 0.9632 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005231/0.318, allocations: 277.6 kB / 0.9635 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.318, allocations: 0 / 0.9635 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.318, allocations: 0 / 0.9635 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.318, allocations: 0 / 0.9635 GB, free: 10.92 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.319, allocations: 0.6888 MB / 0.9641 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3191, allocations: 0 / 0.9641 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.3193, allocations: 51.89 kB / 0.9642 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3193, allocations: 4 kB / 0.9642 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.3193, allocations: 3.938 kB / 0.9642 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3193, allocations: 4 kB / 0.9642 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.3194, allocations: 3.984 kB / 0.9642 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005105/0.3199, allocations: 449.8 kB / 0.9646 GB, free: 9.629 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.32, allocations: 116.9 kB / 0.9648 GB, free: 9.496 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.32, allocations: 11.84 kB / 0.9648 GB, free: 9.484 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.3203, allocations: 19.97 kB / 0.9648 GB, free: 9.465 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.308e-05/0.3203, allocations: 15.98 kB / 0.9648 GB, free: 9.449 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.3204, allocations: 4 kB / 0.9648 GB, free: 9.445 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001092/0.3205, allocations: 127.2 kB / 0.9649 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3205, allocations: 0 / 0.9649 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004724/0.321, allocations: 83.78 kB / 0.965 GB, free: 9.238 MB / 0.7481 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.0001293/0.3211, allocations: 111.2 kB / 0.9651 GB, free: 9.121 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006894/0.3218, allocations: 370.3 kB / 0.9655 GB, free: 8.762 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3218, allocations: 0 / 0.9655 GB, free: 8.762 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.322, allocations: 120.8 kB / 0.9656 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.3225, allocations: 48.12 kB / 0.9656 GB, free: 8.602 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007644/0.3233, allocations: 438.4 kB / 0.966 GB, free: 8.129 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.3236, allocations: 0.7517 MB / 0.9668 GB, free: 7.352 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001875/0.3238, allocations: 77.47 kB / 0.9668 GB, free: 7.277 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.091e-05/0.3239, allocations: 15.44 kB / 0.9669 GB, free: 7.266 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.3239, allocations: 0 / 0.9669 GB, free: 7.266 MB / 0.7481 GB Notification: Performance of Templates: time 0.005093/0.329, allocations: 2.294 MB / 0.9691 GB, free: 4.984 MB / 0.7481 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 -s gbode -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/jenkins1/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