Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001964/0.001964, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001826/0.001826, allocations: 194.8 kB / 16.14 MB, free: 6.641 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.456/1.456, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002562/0.002562, allocations: 275.1 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004494/0.004494, allocations: 96.06 kB / 0.6057 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1982, allocations: 89.15 MB / 0.6928 GB, free: 4.828 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.008408/0.2066, allocations: 3.864 MB / 0.6966 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004036/0.2107, allocations: 1.735 MB / 0.6983 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.2109, allocations: 7.938 kB / 0.6983 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001646/0.2126, allocations: 477.6 kB / 0.6987 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006173/0.2133, allocations: 207.1 kB / 0.6989 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006962/0.214, allocations: 195.6 kB / 0.6991 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009699/0.215, allocations: 0.6622 MB / 0.6997 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005812/0.2155, allocations: 245.4 kB / 0.7 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.2158, allocations: 159.4 kB / 0.7001 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000519/0.2164, allocations: 231.1 kB / 0.7004 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.278e-05/0.2164, allocations: 20 kB / 0.7004 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007328/0.2172, allocations: 307.3 kB / 0.7007 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.2174, allocations: 115.7 kB / 0.7008 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.2176, allocations: 159.2 kB / 0.7009 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009295/0.2186, allocations: 0.5062 MB / 0.7014 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2186, allocations: 0 / 0.7014 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2186, allocations: 0 / 0.7014 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.2186, allocations: 0 / 0.7014 GB, free: 11.97 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00147/0.2201, allocations: 0.6316 MB / 0.702 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2201, allocations: 8.031 kB / 0.702 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.2216, allocations: 136.4 kB / 0.7022 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005494/0.2222, allocations: 287.6 kB / 0.7025 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.463e-05/0.2223, allocations: 29.02 kB / 0.7025 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.2223, allocations: 24.38 kB / 0.7025 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009669/0.2233, allocations: 463.9 kB / 0.7029 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.2234, allocations: 7.938 kB / 0.703 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.2234, allocations: 16 kB / 0.703 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.83e-05/0.2235, allocations: 24.55 kB / 0.703 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005272/0.224, allocations: 321.9 kB / 0.7033 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.2265, allocations: 2.189 MB / 0.7054 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004402/0.227, allocations: 247.8 kB / 0.7057 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.2272, allocations: 112.8 kB / 0.7058 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.2273, allocations: 3.984 kB / 0.7058 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.2273, allocations: 34.56 kB / 0.7058 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.2273, allocations: 0 / 0.7058 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0006205/0.2279, allocations: 314.5 kB / 0.7061 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.228, allocations: 51.41 kB / 0.7062 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.2283, allocations: 266.5 kB / 0.7064 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.2283, allocations: 25.7 kB / 0.7064 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.2285, allocations: 211.8 kB / 0.7066 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.2285, allocations: 47.3 kB / 0.7067 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.044e-05/0.2286, allocations: 49.94 kB / 0.7067 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.2288, allocations: 338.8 kB / 0.7071 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.2289, allocations: 60.44 kB / 0.7071 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.2291, allocations: 140 kB / 0.7073 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002951/0.2294, allocations: 211 kB / 0.7075 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2294, allocations: 0 / 0.7075 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000457/0.2299, allocations: 275.8 kB / 0.7077 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2299, allocations: 4 kB / 0.7077 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.2299, allocations: 4 kB / 0.7077 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001715/0.2301, allocations: 20.84 kB / 0.7077 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.2303, allocations: 59.84 kB / 0.7078 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.2315, allocations: 1.319 MB / 0.7091 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.2317, allocations: 31.72 kB / 0.7091 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.2317, allocations: 12 kB / 0.7091 GB, free: 3.406 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.2319, allocations: 169.8 kB / 0.7093 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.232, allocations: 27.66 kB / 0.7093 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.786e-05/0.232, allocations: 21.84 kB / 0.7093 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.232, allocations: 8.078 kB / 0.7093 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.232, allocations: 3.938 kB / 0.7094 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.232, allocations: 0 / 0.7094 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009633/0.233, allocations: 0.7024 MB / 0.71 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.233, allocations: 0 / 0.71 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.578e-05/0.2331, allocations: 27.98 kB / 0.7101 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.647e-05/0.2332, allocations: 28.97 kB / 0.7101 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.2332, allocations: 8 kB / 0.7101 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/0.2343, allocations: 1.319 MB / 0.7114 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2343, allocations: 0 / 0.7114 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.2347, allocations: 321.1 kB / 0.7117 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.2349, allocations: 108.8 kB / 0.7118 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.2349, allocations: 11.98 kB / 0.7118 GB, free: 380 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.2351, allocations: 8 kB / 0.7118 GB, free: 372 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-05/0.2351, allocations: 11.98 kB / 0.7118 GB, free: 360 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.2351, allocations: 12 kB / 0.7118 GB, free: 348 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001988/0.2353, allocations: 190 kB / 0.712 GB, free: 156 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2354, allocations: 0 / 0.712 GB, free: 156 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004057/0.2358, allocations: 87.62 kB / 0.7121 GB, free: 68 kB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00013/0.2359, allocations: 99.19 kB / 0.7122 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004708/0.2364, allocations: 276.4 kB / 0.7125 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2364, allocations: 0 / 0.7125 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002247/0.2366, allocations: 178.6 kB / 0.7126 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.2371, allocations: 61.67 kB / 0.7127 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009856/0.2381, allocations: 0.6603 MB / 0.7133 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.2386, allocations: 0.7911 MB / 0.7141 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001481/0.2387, allocations: 42.27 kB / 0.7142 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.595e-05/0.2388, allocations: 19.44 kB / 0.7142 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.2388, allocations: 0 / 0.7142 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of Templates: time 0.006438/0.2452, allocations: 2.593 MB / 0.7167 GB, free: 11.28 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)