Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.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.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 102.2 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.0009707/0.0009707, allocations: 194.3 kB / 17.3 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 289.9 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.9131/0.9131, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 94.39 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1642/0.1659, allocations: 86.97 MB / 0.6816 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005366/0.1713, allocations: 4.084 MB / 0.6856 GB, free: 3.379 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.1736, allocations: 1.586 MB / 0.6871 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1737, allocations: 19.88 kB / 0.6872 GB, free: 1.766 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.1752, allocations: 0.5837 MB / 0.6877 GB, free: 1.18 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000407/0.1756, allocations: 230.9 kB / 0.6879 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.1761, allocations: 218.7 kB / 0.6881 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004982/0.1766, allocations: 0.5452 MB / 0.6887 GB, free: 200 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2765/0.4531, allocations: 468.7 kB / 0.6891 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004581/0.4536, allocations: 224.5 kB / 0.6893 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005273/0.4542, allocations: 255.1 kB / 0.6896 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.44e-05/0.4543, allocations: 35.81 kB / 0.6896 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003426/0.4546, allocations: 168.2 kB / 0.6898 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.4548, allocations: 150.3 kB / 0.6899 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.455, allocations: 194.2 kB / 0.6901 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006116/0.4556, allocations: 0.523 MB / 0.6906 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.4556, allocations: 1.781 kB / 0.6906 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4556, allocations: 1.812 kB / 0.6906 GB, free: 12.65 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.4556, allocations: 0 / 0.6906 GB, free: 12.65 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001045/0.4567, allocations: 0.6785 MB / 0.6913 GB, free: 12.2 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.4567, allocations: 10.22 kB / 0.6913 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006945/0.4574, allocations: 107.4 kB / 0.6914 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.4578, allocations: 301.6 kB / 0.6917 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.207e-05/0.4579, allocations: 57.81 kB / 0.6917 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.458, allocations: 35.66 kB / 0.6918 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007801/0.4588, allocations: 0.5054 MB / 0.6923 GB, free: 11.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.4588, allocations: 4.594 kB / 0.6923 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.4588, allocations: 11.94 kB / 0.6923 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-05/0.4589, allocations: 33.48 kB / 0.6923 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006646/0.4596, allocations: 379.1 kB / 0.6927 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.4616, allocations: 2.211 MB / 0.6948 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/0.4622, allocations: 257 kB / 0.6951 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003395/0.4626, allocations: 154.8 kB / 0.6952 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.4626, allocations: 2.828 kB / 0.6952 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.4627, allocations: 32.28 kB / 0.6953 GB, free: 10.18 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 1.683e-06/0.4627, allocations: 0 / 0.6953 GB, free: 10.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001383/0.4641, allocations: 0.57 MB / 0.6958 GB, free: 9.926 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.4641, allocations: 58.19 kB / 0.6959 GB, free: 9.859 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001937/0.4643, allocations: 226.2 kB / 0.6961 GB, free: 9.758 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.783e-05/0.4643, allocations: 31.05 kB / 0.6961 GB, free: 9.727 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.363e-05/0.4644, allocations: 207.9 kB / 0.6963 GB, free: 9.582 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.4645, allocations: 67.48 kB / 0.6964 GB, free: 9.539 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.247e-05/0.4645, allocations: 56.08 kB / 0.6964 GB, free: 9.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.244e-05/0.4646, allocations: 329.8 kB / 0.6968 GB, free: 9.207 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.4648, allocations: 99.75 kB / 0.6968 GB, free: 9.195 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.4651, allocations: 182.8 kB / 0.697 GB, free: 9.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.4655, allocations: 270.7 kB / 0.6973 GB, free: 9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4655, allocations: 1.062 kB / 0.6973 GB, free: 9 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007968/0.4663, allocations: 381.4 kB / 0.6976 GB, free: 8.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.4663, allocations: 9.609 kB / 0.6977 GB, free: 8.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.4663, allocations: 3 kB / 0.6977 GB, free: 8.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004894/0.4668, allocations: 113.5 kB / 0.6978 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.467, allocations: 56.44 kB / 0.6978 GB, free: 8.902 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00241/0.4695, allocations: 3.037 MB / 0.7008 GB, free: 6.117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.4697, allocations: 39.59 kB / 0.7008 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.4697, allocations: 9.828 kB / 0.7008 GB, free: 6.098 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002977/0.47, allocations: 222 kB / 0.701 GB, free: 5.969 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002179/0.4703, allocations: 178 kB / 0.7012 GB, free: 5.832 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004005/0.4707, allocations: 278.1 kB / 0.7015 GB, free: 5.672 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.753e-06/0.4707, allocations: 0 / 0.7015 GB, free: 5.672 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007194/0.4714, allocations: 349.1 kB / 0.7018 GB, free: 5.543 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.4714, allocations: 11.36 kB / 0.7018 GB, free: 5.539 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4715, allocations: 8.25 kB / 0.7018 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002714/0.4717, allocations: 78.77 kB / 0.7019 GB, free: 5.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.472, allocations: 56.61 kB / 0.702 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.4735, allocations: 1.612 MB / 0.7035 GB, free: 4.051 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.4738, allocations: 27.64 kB / 0.7036 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.4738, allocations: 12.84 kB / 0.7036 GB, free: 4.035 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 8.881e-05/0.4739, allocations: 196.6 kB / 0.7038 GB, free: 3.844 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.947e-05/0.4739, allocations: 27.3 kB / 0.7038 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.633e-05/0.474, allocations: 25.61 kB / 0.7038 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.474, allocations: 2.375 kB / 0.7038 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.474, allocations: 4.719 kB / 0.7038 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.474, allocations: 4.734 kB / 0.7038 GB, free: 3.805 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.4753, allocations: 0.8302 MB / 0.7046 GB, free: 3.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4753, allocations: 0 / 0.7046 GB, free: 3.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.4755, allocations: 33.34 kB / 0.7047 GB, free: 3.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003572/0.4758, allocations: 103.1 kB / 0.7048 GB, free: 3.223 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.4759, allocations: 2.438 kB / 0.7048 GB, free: 3.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.478, allocations: 3.022 MB / 0.7077 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.478, allocations: 2.203 kB / 0.7077 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006591/0.4787, allocations: 418.1 kB / 0.7081 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.4788, allocations: 111.5 kB / 0.7082 GB, free: 16 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.536e-05/0.4788, allocations: 11.23 kB / 0.7082 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.479, allocations: 15.47 kB / 0.7082 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.4791, allocations: 19.86 kB / 0.7083 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.4791, allocations: 8.719 kB / 0.7083 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001694/0.4793, allocations: 162.1 kB / 0.7084 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4793, allocations: 0.9688 kB / 0.7084 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006529/0.48, allocations: 168.9 kB / 0.7086 GB, free: 15.83 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001184/0.4801, allocations: 108.2 kB / 0.7087 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001862/0.482, allocations: 0.7579 MB / 0.7094 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.482, allocations: 4.938 kB / 0.7094 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007499/0.4827, allocations: 375.6 kB / 0.7098 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.4832, allocations: 55.39 kB / 0.7098 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.4842, allocations: 0.576 MB / 0.7104 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.4846, allocations: 0.8099 MB / 0.7112 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001849/0.4848, allocations: 60.41 kB / 0.7113 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.4849, allocations: 19.22 kB / 0.7113 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.4849, allocations: 3.938 kB / 0.7113 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of Templates: time 0.009725/0.4946, allocations: 4.67 MB / 0.7158 GB, free: 13.67 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)