Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001485, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 191.3 kB / 16.64 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.678/1.678, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 74.86 kB / 0.6718 GB, free: 26.38 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2338, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005032/0.2389, allocations: 3.07 MB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002095/0.241, allocations: 1.321 MB / 0.7879 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.2412, allocations: 4 kB / 0.7879 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001143/0.2423, allocations: 346.6 kB / 0.7883 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.2428, allocations: 143.3 kB / 0.7884 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.2432, allocations: 134.4 kB / 0.7885 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003655/0.2435, allocations: 307 kB / 0.7888 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004646/0.244, allocations: 228.5 kB / 0.789 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.2442, allocations: 131.5 kB / 0.7892 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003135/0.2445, allocations: 139.5 kB / 0.7893 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.2445, allocations: 20 kB / 0.7893 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.2448, allocations: 163.7 kB / 0.7895 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.956e-05/0.2449, allocations: 75.78 kB / 0.7895 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.245, allocations: 111.5 kB / 0.7896 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003858/0.2454, allocations: 335 kB / 0.79 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.2454, allocations: 0 / 0.79 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2454, allocations: 0 / 0.79 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.2454, allocations: 0 / 0.79 GB, free: 6.754 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008711/0.2463, allocations: 0.5185 MB / 0.7905 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.2464, allocations: 12.03 kB / 0.7905 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.568e-05/0.2465, allocations: 58.72 kB / 0.7905 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005932/0.2471, allocations: 80.58 kB / 0.7906 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.2474, allocations: 243.9 kB / 0.7908 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.2474, allocations: 16.75 kB / 0.7909 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.2474, allocations: 16.38 kB / 0.7909 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.2479, allocations: 306.8 kB / 0.7912 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2479, allocations: 8 kB / 0.7912 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.248, allocations: 12 kB / 0.7912 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.248, allocations: 16.36 kB / 0.7912 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.2483, allocations: 196.9 kB / 0.7914 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.2499, allocations: 1.46 MB / 0.7928 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.2502, allocations: 175.7 kB / 0.793 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.625e-05/0.2502, allocations: 32.86 kB / 0.793 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2503, allocations: 7.984 kB / 0.793 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.2503, allocations: 30.56 kB / 0.7931 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.625e-06/0.2503, allocations: 0 / 0.7931 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004892/0.2508, allocations: 219.5 kB / 0.7933 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.2508, allocations: 55.34 kB / 0.7933 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.251, allocations: 204.1 kB / 0.7935 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.2511, allocations: 29.64 kB / 0.7935 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.2512, allocations: 167.6 kB / 0.7937 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.2512, allocations: 27.78 kB / 0.7937 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-05/0.2513, allocations: 29.72 kB / 0.7938 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2514, allocations: 334.8 kB / 0.7941 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.797e-05/0.2515, allocations: 35.98 kB / 0.7941 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.2516, allocations: 101.4 kB / 0.7942 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.2518, allocations: 148.4 kB / 0.7943 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2518, allocations: 0 / 0.7943 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002965/0.2521, allocations: 186.2 kB / 0.7945 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2522, allocations: 10.66 kB / 0.7945 GB, free: 1.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2522, allocations: 7.922 kB / 0.7945 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001639/0.2523, allocations: 24.84 kB / 0.7946 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.2525, allocations: 24 kB / 0.7946 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00102/0.2535, allocations: 1.424 MB / 0.796 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.2536, allocations: 24 kB / 0.796 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.2536, allocations: 7.938 kB / 0.796 GB, free: 15.95 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * 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: 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.0001241/0.2538, allocations: 149.7 kB / 0.7962 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.2538, allocations: 15.81 kB / 0.7962 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.2538, allocations: 21.39 kB / 0.7962 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2538, allocations: 0 / 0.7962 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2539, allocations: 0 / 0.7962 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.2539, allocations: 0 / 0.7962 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004698/0.2543, allocations: 455.1 kB / 0.7966 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2543, allocations: 0 / 0.7966 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.863e-05/0.2544, allocations: 12.16 kB / 0.7966 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.252e-05/0.2545, allocations: 24.78 kB / 0.7967 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2545, allocations: 0 / 0.7967 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009211/0.2554, allocations: 1.414 MB / 0.798 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2554, allocations: 0 / 0.798 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.2556, allocations: 216.2 kB / 0.7982 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 7.237e-05/0.2557, allocations: 100.9 kB / 0.7983 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.2558, allocations: 0 / 0.7983 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.2559, allocations: 8 kB / 0.7983 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/0.2559, allocations: 0 / 0.7983 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.2559, allocations: 4 kB / 0.7983 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001272/0.256, allocations: 151 kB / 0.7985 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/0.256, allocations: 0 / 0.7985 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003234/0.2564, allocations: 55.84 kB / 0.7985 GB, free: 13.11 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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.0005409/0.2569, allocations: 0.7443 MB / 0.7993 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003487/0.2573, allocations: 214.5 kB / 0.7995 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.2573, allocations: 0 / 0.7995 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.2574, allocations: 146.7 kB / 0.7996 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.2578, allocations: 36.41 kB / 0.7997 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.26, allocations: 2.051 MB / 0.8017 GB, free: 9.727 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.2603, allocations: 0.7475 MB / 0.8024 GB, free: 8.953 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.406e-05/0.2604, allocations: 26.11 kB / 0.8024 GB, free: 8.93 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.457e-05/0.2605, allocations: 55.36 kB / 0.8025 GB, free: 8.875 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2605, allocations: 0 / 0.8025 GB, free: 8.875 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.2821, allocations: 3.653 MB / 0.806 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.826/9.108, allocations: 11.31 kB / 0.806 GB, free: 5.332 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)