Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.693/1.693, allocations: 287.4 MB / 302.5 MB, free: 8.145 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 181.2 kB / 371.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.4 MB / 0.6298 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007816/0.0007815, allocations: 85.3 kB / 0.7431 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.0004115, allocations: 15.38 kB / 0.8662 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2315, allocations: 115.3 MB / 0.9787 GB, free: 28.11 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.003657/0.2352, allocations: 3.331 MB / 0.982 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00222/0.2375, allocations: 1.63 MB / 0.9836 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.2378, allocations: 8 kB / 0.9836 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002664/0.2381, allocations: 59.5 kB / 0.9836 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0005675/0.2387, allocations: 175.2 kB / 0.9838 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.2392, allocations: 150.4 kB / 0.9839 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004862/0.2397, allocations: 0.5373 MB / 0.9845 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003758/0.2401, allocations: 314.3 kB / 0.9848 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.2402, allocations: 151.4 kB / 0.9849 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.2405, allocations: 203.3 kB / 0.9851 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.2406, allocations: 16 kB / 0.9851 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.2408, allocations: 111.9 kB / 0.9852 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.252e-05/0.2409, allocations: 111.7 kB / 0.9853 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.16e-05/0.241, allocations: 89.52 kB / 0.9854 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.2413, allocations: 375.3 kB / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2413, allocations: 4 kB / 0.9858 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.743e-06/0.2413, allocations: 0 / 0.9858 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.2413, allocations: 0 / 0.9858 GB, free: 20.83 MB / 0.6198 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.0007111/0.242, allocations: 0.577 MB / 0.9863 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2421, allocations: 8.031 kB / 0.9864 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.037e-05/0.2421, allocations: 70.66 kB / 0.9864 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007624/0.2429, allocations: 144.4 kB / 0.9866 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.2432, allocations: 279.7 kB / 0.9868 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.2432, allocations: 29.02 kB / 0.9869 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.2433, allocations: 24.38 kB / 0.9869 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.2438, allocations: 467.7 kB / 0.9873 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.2439, allocations: 8 kB / 0.9873 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.2439, allocations: 12 kB / 0.9873 GB, free: 19.1 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.891e-05/0.2439, allocations: 24.55 kB / 0.9874 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.2443, allocations: 321.9 kB / 0.9877 GB, free: 18.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.2459, allocations: 2.193 MB / 0.9898 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.2462, allocations: 251.8 kB / 0.9901 GB, free: 16.09 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.2464, allocations: 120.7 kB / 0.9902 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.029e-05/0.2464, allocations: 0 / 0.9902 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.2465, allocations: 34.56 kB / 0.9902 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.2465, allocations: 0 / 0.9902 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.0005024/0.247, allocations: 295.5 kB / 0.9905 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.247, allocations: 63.33 kB / 0.9905 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.2472, allocations: 266.5 kB / 0.9908 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.2473, allocations: 25.7 kB / 0.9908 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.2473, allocations: 203.9 kB / 0.991 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.2474, allocations: 51.3 kB / 0.9911 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.046e-06/0.2474, allocations: 8 kB / 0.9911 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.974e-05/0.2475, allocations: 334.8 kB / 0.9914 GB, free: 14.63 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.918e-05/0.2475, allocations: 60.38 kB / 0.9915 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.2477, allocations: 144.1 kB / 0.9916 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.2479, allocations: 212.6 kB / 0.9918 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2479, allocations: 0 / 0.9918 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003183/0.2482, allocations: 269.8 kB / 0.9921 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2482, allocations: 8 kB / 0.9921 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2482, allocations: 4 kB / 0.9921 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.2484, allocations: 20.84 kB / 0.9921 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001638/0.2486, allocations: 56.28 kB / 0.9921 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007203/0.2493, allocations: 1.319 MB / 0.9934 GB, free: 12.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.2495, allocations: 35.88 kB / 0.9935 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.2495, allocations: 8 kB / 0.9935 GB, free: 12.29 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001218/0.2496, allocations: 167.1 kB / 0.9936 GB, free: 12.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.043e-05/0.2496, allocations: 27.66 kB / 0.9937 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.706e-05/0.2497, allocations: 25.83 kB / 0.9937 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2497, allocations: 4 kB / 0.9937 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2497, allocations: 64 / 0.9937 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2497, allocations: 4 kB / 0.9937 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006969/0.2504, allocations: 0.7063 MB / 0.9944 GB, free: 11.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2504, allocations: 8.125 kB / 0.9944 GB, free: 11.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.845e-05/0.2505, allocations: 23.98 kB / 0.9944 GB, free: 11.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.317e-05/0.2506, allocations: 24.84 kB / 0.9944 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.2506, allocations: 8 kB / 0.9944 GB, free: 11.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006332/0.2513, allocations: 1.311 MB / 0.9957 GB, free: 9.742 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2513, allocations: 0 / 0.9957 GB, free: 9.742 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.2515, allocations: 314.7 kB / 0.996 GB, free: 9.398 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.198e-05/0.2516, allocations: 116.8 kB / 0.9961 GB, free: 9.266 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.2516, allocations: 4 kB / 0.9961 GB, free: 9.262 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.2518, allocations: 16 kB / 0.9961 GB, free: 9.246 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.626e-05/0.2519, allocations: 15.91 kB / 0.9962 GB, free: 9.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.2519, allocations: 12 kB / 0.9962 GB, free: 9.219 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001398/0.252, allocations: 193.9 kB / 0.9964 GB, free: 9.035 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.252, allocations: 0 / 0.9964 GB, free: 9.035 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003622/0.2524, allocations: 79.69 kB / 0.9964 GB, free: 8.957 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004874/0.2529, allocations: 0.8507 MB / 0.9973 GB, free: 8.059 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004258/0.2533, allocations: 267.2 kB / 0.9975 GB, free: 7.785 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2533, allocations: 0 / 0.9975 GB, free: 7.785 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.2535, allocations: 183.7 kB / 0.9977 GB, free: 7.594 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.254, allocations: 57.16 kB / 0.9978 GB, free: 7.539 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.2557, allocations: 1.52 MB / 0.9992 GB, free: 5.914 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.2559, allocations: 0.7948 MB / 1 GB, free: 5.094 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001461/0.2561, allocations: 38.27 kB / 1 GB, free: 5.055 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.761e-05/0.2562, allocations: 83.41 kB / 1 GB, free: 4.973 MB / 0.6198 GB Notification: Performance of SimCode: time 5.62e-07/0.2562, allocations: 0 / 1 GB, free: 4.973 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.2729, allocations: 4.901 MB / 1.005 GB, free: 260 kB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/0.2731, allocations: 208.3 kB / 1.005 GB, free: 12 kB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.106, allocations: 2.531 kB / 1.005 GB, free: 12 kB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)