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.00104/0.001041, allocations: 107.5 kB / 16.36 MB, free: 6.285 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.0009845/0.0009847, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.287/1.287, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002069/0.002069, allocations: 282.5 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.9246/0.9246, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 99.61 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1488, allocations: 86.97 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005505/0.1543, allocations: 4.088 MB / 0.6856 GB, free: 3.352 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.1569, allocations: 1.586 MB / 0.6871 GB, free: 1.758 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.1571, allocations: 8 kB / 0.6871 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.1586, allocations: 0.5915 MB / 0.6877 GB, free: 1.156 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004344/0.1591, allocations: 226.9 kB / 0.6879 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.1595, allocations: 227.5 kB / 0.6882 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005233/0.1601, allocations: 0.5413 MB / 0.6887 GB, free: 172 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2423/0.4024, allocations: 469.2 kB / 0.6891 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/0.4028, allocations: 226.3 kB / 0.6893 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.4032, allocations: 252.7 kB / 0.6896 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.166e-05/0.4033, allocations: 35.62 kB / 0.6896 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003251/0.4036, allocations: 166.4 kB / 0.6898 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.4038, allocations: 154 kB / 0.6899 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001971/0.404, allocations: 194.1 kB / 0.6901 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006078/0.4046, allocations: 0.5238 MB / 0.6906 GB, free: 12.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.4046, allocations: 0.7812 kB / 0.6906 GB, free: 12.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4046, allocations: 0 / 0.6906 GB, free: 12.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.4046, allocations: 1.812 kB / 0.6906 GB, free: 12.69 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.001038/0.4057, allocations: 0.681 MB / 0.6913 GB, free: 12.24 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.4057, allocations: 9.812 kB / 0.6913 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007134/0.4064, allocations: 109.5 kB / 0.6914 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.4068, allocations: 301.1 kB / 0.6917 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.4069, allocations: 56.27 kB / 0.6917 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.823e-05/0.407, allocations: 36.59 kB / 0.6918 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000804/0.4078, allocations: 0.5017 MB / 0.6923 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.4078, allocations: 4.562 kB / 0.6923 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.4079, allocations: 18.44 kB / 0.6923 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.743e-05/0.4079, allocations: 33.16 kB / 0.6923 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006964/0.4086, allocations: 378.3 kB / 0.6927 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.4107, allocations: 2.207 MB / 0.6948 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006703/0.4114, allocations: 258.1 kB / 0.6951 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/0.4118, allocations: 152.8 kB / 0.6952 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.4118, allocations: 2.562 kB / 0.6952 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.4118, allocations: 33.77 kB / 0.6953 GB, free: 10.22 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 2.004e-06/0.4118, allocations: 4 kB / 0.6953 GB, free: 10.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001443/0.4133, allocations: 0.5687 MB / 0.6958 GB, free: 9.965 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.039e-05/0.4133, allocations: 53.75 kB / 0.6959 GB, free: 9.902 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.4135, allocations: 227.1 kB / 0.6961 GB, free: 9.801 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.4136, allocations: 33.95 kB / 0.6961 GB, free: 9.77 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.073e-05/0.4137, allocations: 209.8 kB / 0.6963 GB, free: 9.625 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.4137, allocations: 64.64 kB / 0.6964 GB, free: 9.582 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-05/0.4138, allocations: 58.44 kB / 0.6964 GB, free: 9.559 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.934e-05/0.4139, allocations: 332.5 kB / 0.6968 GB, free: 9.246 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.4141, allocations: 96.08 kB / 0.6969 GB, free: 9.238 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.4143, allocations: 180 kB / 0.697 GB, free: 9.133 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000411/0.4147, allocations: 272.2 kB / 0.6973 GB, free: 9.043 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4147, allocations: 1.625 kB / 0.6973 GB, free: 9.043 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008115/0.4156, allocations: 386.8 kB / 0.6977 GB, free: 8.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.4156, allocations: 6.438 kB / 0.6977 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4156, allocations: 3 kB / 0.6977 GB, free: 8.969 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004842/0.4161, allocations: 107.3 kB / 0.6978 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.4163, allocations: 49.94 kB / 0.6978 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002701/0.419, allocations: 3.047 MB / 0.7008 GB, free: 6.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.4193, allocations: 34.81 kB / 0.7008 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.4193, allocations: 13.48 kB / 0.7008 GB, free: 6.098 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003624/0.4197, allocations: 224.3 kB / 0.701 GB, free: 5.969 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002678/0.42, allocations: 179.5 kB / 0.7012 GB, free: 5.832 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004651/0.4205, allocations: 273.3 kB / 0.7015 GB, free: 5.676 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.934e-06/0.4205, allocations: 1.062 kB / 0.7015 GB, free: 5.676 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007856/0.4213, allocations: 349.3 kB / 0.7018 GB, free: 5.547 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.4213, allocations: 11.45 kB / 0.7018 GB, free: 5.543 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.4213, allocations: 2.562 kB / 0.7018 GB, free: 5.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002916/0.4216, allocations: 82.09 kB / 0.7019 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.4218, allocations: 52.59 kB / 0.702 GB, free: 5.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/0.4234, allocations: 1.617 MB / 0.7035 GB, free: 4.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.4237, allocations: 29.09 kB / 0.7036 GB, free: 4.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.4237, allocations: 9.922 kB / 0.7036 GB, free: 4.043 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 0.0001037/0.4238, allocations: 201 kB / 0.7038 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.391e-05/0.4239, allocations: 23.03 kB / 0.7038 GB, free: 3.836 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.165e-05/0.424, allocations: 29.31 kB / 0.7038 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.424, allocations: 3.438 kB / 0.7038 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.424, allocations: 0 / 0.7038 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.424, allocations: 5.906 kB / 0.7038 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.4255, allocations: 0.8254 MB / 0.7046 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.4255, allocations: 0.625 kB / 0.7046 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.4256, allocations: 33.09 kB / 0.7047 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000364/0.426, allocations: 105.5 kB / 0.7048 GB, free: 3.227 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.426, allocations: 5.844 kB / 0.7048 GB, free: 3.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002201/0.4282, allocations: 3.015 MB / 0.7077 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4282, allocations: 1.281 kB / 0.7077 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007382/0.429, allocations: 426.2 kB / 0.7081 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.4291, allocations: 120.3 kB / 0.7082 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.4292, allocations: 7.234 kB / 0.7082 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.4294, allocations: 12.05 kB / 0.7083 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.399e-05/0.4295, allocations: 19.02 kB / 0.7083 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.4295, allocations: 4.562 kB / 0.7083 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001632/0.4296, allocations: 166.7 kB / 0.7084 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.4296, allocations: 1.312 kB / 0.7084 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006703/0.4303, allocations: 172.4 kB / 0.7086 GB, free: 15.82 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.0001154/0.4304, allocations: 105.8 kB / 0.7087 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001961/0.4324, allocations: 0.7556 MB / 0.7094 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4324, allocations: 0 / 0.7094 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007986/0.4332, allocations: 377.4 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.0004593/0.4337, allocations: 66.7 kB / 0.7099 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.4348, allocations: 0.5673 MB / 0.7104 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.4353, allocations: 0.8066 MB / 0.7112 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002139/0.4355, allocations: 60.27 kB / 0.7113 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.004e-05/0.4355, allocations: 18.41 kB / 0.7113 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of SimCode: time 1.623e-06/0.4356, allocations: 0.7188 kB / 0.7113 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of Templates: time 0.01053/0.4461, allocations: 4.681 MB / 0.7158 GB, free: 13.66 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)