Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001426/0.001427, allocations: 102.9 kB / 16.35 MB, free: 5.875 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.001542/0.001542, allocations: 191 kB / 17.29 MB, free: 5.516 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 273 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9185/0.9185, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 94.86 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.147, allocations: 86.97 MB / 0.6816 GB, free: 7.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.003705/0.1508, allocations: 2.627 MB / 0.6842 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1526, allocations: 1.321 MB / 0.6855 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.241e-05/0.1527, allocations: 4 kB / 0.6855 GB, free: 3.508 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006048/0.1533, allocations: 183.2 kB / 0.6856 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003003/0.1536, allocations: 167.3 kB / 0.6858 GB, free: 3.164 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.1539, allocations: 159.6 kB / 0.6859 GB, free: 3.008 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.1542, allocations: 267.2 kB / 0.6862 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/0.1545, allocations: 147 kB / 0.6863 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1546, allocations: 103.7 kB / 0.6864 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.1549, allocations: 131.5 kB / 0.6866 GB, free: 2.375 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.1549, allocations: 16 kB / 0.6866 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002031/0.1551, allocations: 139.7 kB / 0.6867 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.1552, allocations: 67.8 kB / 0.6868 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.634e-05/0.1553, allocations: 91.53 kB / 0.6869 GB, free: 2.066 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.1556, allocations: 291.1 kB / 0.6871 GB, free: 1.781 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1556, allocations: 0 / 0.6871 GB, free: 1.781 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1556, allocations: 3.938 kB / 0.6871 GB, free: 1.777 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.1556, allocations: 0 / 0.6871 GB, free: 1.777 MB / 494.1 MB 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.0006553/0.1563, allocations: 499 kB / 0.6876 GB, free: 1.238 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.1563, allocations: 12.03 kB / 0.6876 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004691/0.1568, allocations: 64.58 kB / 0.6877 GB, free: 1.164 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.1571, allocations: 244.9 kB / 0.6879 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1571, allocations: 16.62 kB / 0.6879 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.1572, allocations: 16.38 kB / 0.688 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004642/0.1576, allocations: 309.5 kB / 0.6883 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.1576, allocations: 0 / 0.6883 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.1577, allocations: 7.938 kB / 0.6883 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/0.1577, allocations: 32.25 kB / 0.6883 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004621/0.1582, allocations: 252.6 kB / 0.6885 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2417/0.3999, allocations: 1.496 MB / 0.69 GB, free: 17.31 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004682/0.4004, allocations: 258.3 kB / 0.6902 GB, free: 17.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002176/0.4006, allocations: 131.5 kB / 0.6904 GB, free: 17.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4007, allocations: 2.906 kB / 0.6904 GB, free: 17.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.4007, allocations: 38.91 kB / 0.6904 GB, free: 17.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 2.575e-06/0.4007, allocations: 0 / 0.6904 GB, free: 17.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.000711/0.4014, allocations: 341.3 kB / 0.6907 GB, free: 17.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.586e-05/0.4014, allocations: 86.58 kB / 0.6908 GB, free: 17.08 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.4016, allocations: 175.8 kB / 0.691 GB, free: 16.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.4016, allocations: 28.36 kB / 0.691 GB, free: 16.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.4017, allocations: 140.4 kB / 0.6911 GB, free: 16.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.4017, allocations: 57.16 kB / 0.6912 GB, free: 16.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.162e-05/0.4018, allocations: 48.19 kB / 0.6912 GB, free: 16.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.645e-05/0.4018, allocations: 322 kB / 0.6916 GB, free: 16.49 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.4021, allocations: 109.7 kB / 0.6917 GB, free: 16.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003156/0.4024, allocations: 166.4 kB / 0.6918 GB, free: 16.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005944/0.4031, allocations: 279.8 kB / 0.6921 GB, free: 16.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.4031, allocations: 5.469 kB / 0.6921 GB, free: 16.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006183/0.4037, allocations: 309.5 kB / 0.6924 GB, free: 16.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.4037, allocations: 7.891 kB / 0.6924 GB, free: 16.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4037, allocations: 2.031 kB / 0.6924 GB, free: 16.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.4038, allocations: 3.453 kB / 0.6924 GB, free: 16.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.404, allocations: 60.61 kB / 0.6925 GB, free: 16.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.4041, allocations: 4.188 kB / 0.6925 GB, free: 16.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.4043, allocations: 32.73 kB / 0.6925 GB, free: 16.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.4043, allocations: 8.906 kB / 0.6925 GB, free: 16.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002245/0.4045, allocations: 192.3 kB / 0.6927 GB, free: 16.03 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001905/0.4047, allocations: 158.9 kB / 0.6928 GB, free: 15.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000346/0.4051, allocations: 256 kB / 0.6931 GB, free: 15.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.763e-06/0.4051, allocations: 0.8125 kB / 0.6931 GB, free: 15.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0004531/0.4055, allocations: 285.6 kB / 0.6933 GB, free: 15.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.4056, allocations: 5.469 kB / 0.6934 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-06/0.4056, allocations: 3.844 kB / 0.6934 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.098e-06/0.4056, allocations: 2.812 kB / 0.6934 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.4058, allocations: 54.95 kB / 0.6934 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.4058, allocations: 3.844 kB / 0.6934 GB, free: 15.65 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.406, allocations: 30.58 kB / 0.6934 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.406, allocations: 13.69 kB / 0.6935 GB, free: 15.64 MB / 494.1 MB 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 6.463e-05/0.4061, allocations: 188.1 kB / 0.6936 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.785e-05/0.4061, allocations: 20.03 kB / 0.6937 GB, free: 15.44 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005167/0.4067, allocations: 268.6 kB / 0.6939 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.4067, allocations: 5.375 kB / 0.6939 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4067, allocations: 5.125 kB / 0.6939 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4067, allocations: 1.516 kB / 0.6939 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009334/0.4076, allocations: 0.6721 MB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4076, allocations: 3.812 kB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.4079, allocations: 47.73 kB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4079, allocations: 6.719 kB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.4079, allocations: 2.656 kB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.4079, allocations: 2.969 kB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.4079, allocations: 1.656 kB / 0.6946 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.4084, allocations: 465.2 kB / 0.6951 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.638e-05/0.4085, allocations: 117 kB / 0.6952 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.4085, allocations: 2.703 kB / 0.6952 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.4087, allocations: 22 kB / 0.6952 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.4088, allocations: 17.77 kB / 0.6952 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.4088, allocations: 4.25 kB / 0.6952 GB, free: 14.44 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.481e-05/0.4089, allocations: 131.9 kB / 0.6954 GB, free: 14.35 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4089, allocations: 2.5 kB / 0.6954 GB, free: 14.35 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004583/0.4094, allocations: 81.33 kB / 0.6955 GB, free: 14.34 MB / 494.1 MB 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 8.582e-05/0.4095, allocations: 104.3 kB / 0.6955 GB, free: 14.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0006793/0.4102, allocations: 381.2 kB / 0.6959 GB, free: 14.13 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4102, allocations: 0.75 kB / 0.6959 GB, free: 14.13 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.4104, allocations: 111.4 kB / 0.696 GB, free: 14.1 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.4109, allocations: 41.55 kB / 0.6961 GB, free: 14.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.4115, allocations: 438.9 kB / 0.6965 GB, free: 13.83 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.4117, allocations: 0.7483 MB / 0.6972 GB, free: 13.12 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.4119, allocations: 75.02 kB / 0.6973 GB, free: 13.12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.412, allocations: 19.34 kB / 0.6973 GB, free: 13.11 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.412, allocations: 0 / 0.6973 GB, free: 13.11 MB / 494.1 MB Notification: Performance of Templates: time 0.005236/0.4173, allocations: 2.315 MB / 0.6996 GB, free: 12.97 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1)