Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="IBPSA_latest_IBPSA_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.0008636/0.0008636, allocations: 93.03 kB / 16.02 MB, free: 84 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.0009866/0.0009865, allocations: 185 kB / 16.92 MB, free: 6.891 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.298/1.298, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6723/0.6723, allocations: 115.5 MB / 407.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002906, allocations: 11.98 kB / 495.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1292, allocations: 77.53 MB / 0.56 GB, free: 8.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.Resistance): time 0.003477/0.1327, allocations: 2.747 MB / 0.5627 GB, free: 6.234 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.1349, allocations: 1.29 MB / 0.564 GB, free: 4.938 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.1352, allocations: 7.938 kB / 0.564 GB, free: 4.93 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.1354, allocations: 39.72 kB / 0.564 GB, free: 4.891 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000449/0.1358, allocations: 135.4 kB / 0.5642 GB, free: 4.758 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003807/0.1362, allocations: 123.7 kB / 0.5643 GB, free: 4.637 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.1367, allocations: 442.8 kB / 0.5647 GB, free: 4.203 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.1369, allocations: 241.6 kB / 0.5649 GB, free: 3.953 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.1371, allocations: 103.6 kB / 0.565 GB, free: 3.852 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.1374, allocations: 127.5 kB / 0.5651 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.1374, allocations: 8 kB / 0.5652 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003073/0.1377, allocations: 207.6 kB / 0.5654 GB, free: 3.516 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.44e-05/0.1378, allocations: 67.8 kB / 0.5654 GB, free: 3.449 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.422e-05/0.1379, allocations: 117.2 kB / 0.5655 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.1382, allocations: 338.8 kB / 0.5659 GB, free: 2.996 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1382, allocations: 0 / 0.5659 GB, free: 2.996 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1383, allocations: 0 / 0.5659 GB, free: 2.996 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1383, allocations: 7.938 kB / 0.5659 GB, free: 2.988 MB / 430.1 MB 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.000791/0.1391, allocations: 491.1 kB / 0.5663 GB, free: 2.457 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.1391, allocations: 12.03 kB / 0.5663 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.104e-05/0.1392, allocations: 58.73 kB / 0.5664 GB, free: 2.379 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006176/0.1398, allocations: 76.67 kB / 0.5665 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.1402, allocations: 241.8 kB / 0.5667 GB, free: 2.031 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.1402, allocations: 12.75 kB / 0.5667 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.463e-05/0.1402, allocations: 20.38 kB / 0.5667 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.1407, allocations: 299.1 kB / 0.567 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1407, allocations: 4 kB / 0.567 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.1408, allocations: 7.984 kB / 0.567 GB, free: 1.672 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.666e-05/0.1408, allocations: 24.36 kB / 0.5671 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.1411, allocations: 196.9 kB / 0.5672 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.1427, allocations: 1.468 MB / 0.5687 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.143, allocations: 175.7 kB / 0.5688 GB, free: 15.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.563e-05/0.143, allocations: 36.84 kB / 0.5689 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.143, allocations: 0 / 0.5689 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.1431, allocations: 38.5 kB / 0.5689 GB, free: 15.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.011e-06/0.1431, allocations: 0 / 0.5689 GB, free: 15.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004324/0.1435, allocations: 227.6 kB / 0.5691 GB, free: 15.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.1436, allocations: 51.41 kB / 0.5692 GB, free: 15.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1437, allocations: 202.3 kB / 0.5694 GB, free: 15.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.348e-05/0.1438, allocations: 25.7 kB / 0.5694 GB, free: 14.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.796e-05/0.1439, allocations: 171.6 kB / 0.5696 GB, free: 14.82 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.1439, allocations: 23.66 kB / 0.5696 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.1439, allocations: 21.7 kB / 0.5696 GB, free: 14.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.716e-05/0.144, allocations: 326.8 kB / 0.5699 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.805e-05/0.1441, allocations: 31.98 kB / 0.5699 GB, free: 14.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.718e-05/0.1442, allocations: 110.2 kB / 0.5701 GB, free: 14.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.1443, allocations: 148.4 kB / 0.5702 GB, free: 14.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1444, allocations: 0 / 0.5702 GB, free: 14.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002959/0.1447, allocations: 194.3 kB / 0.5704 GB, free: 13.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1447, allocations: 8.031 kB / 0.5704 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1447, allocations: 4 kB / 0.5704 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001346/0.1448, allocations: 20.84 kB / 0.5704 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.1449, allocations: 31.92 kB / 0.5704 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008813/0.1458, allocations: 1.315 MB / 0.5717 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.146, allocations: 11.84 kB / 0.5717 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.146, allocations: 12 kB / 0.5717 GB, free: 12.35 MB / 446.1 MB 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.0001135/0.1461, allocations: 149.7 kB / 0.5719 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/0.1461, allocations: 27.86 kB / 0.5719 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/0.1462, allocations: 17.41 kB / 0.5719 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1462, allocations: 0 / 0.5719 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1462, allocations: 0 / 0.5719 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.1462, allocations: 3.984 kB / 0.5719 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004515/0.1467, allocations: 439.3 kB / 0.5724 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.1467, allocations: 4.062 kB / 0.5724 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.718e-05/0.1467, allocations: 15.92 kB / 0.5724 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.17e-05/0.1468, allocations: 24.84 kB / 0.5724 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.1468, allocations: 0 / 0.5724 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008714/0.1477, allocations: 1.315 MB / 0.5737 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1477, allocations: 0 / 0.5737 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001974/0.1479, allocations: 208.2 kB / 0.5739 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.148, allocations: 100.9 kB / 0.574 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.148, allocations: 3.938 kB / 0.574 GB, free: 9.828 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.1481, allocations: 8.094 kB / 0.574 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.124e-05/0.1481, allocations: 11.98 kB / 0.574 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.1481, allocations: 96 / 0.574 GB, free: 9.809 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.1483, allocations: 154.4 kB / 0.5741 GB, free: 9.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1483, allocations: 0 / 0.5741 GB, free: 9.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.1486, allocations: 47.84 kB / 0.5742 GB, free: 9.613 MB / 446.1 MB 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.0004451/0.149, allocations: 0.7487 MB / 0.5749 GB, free: 8.832 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000341/0.1494, allocations: 202.5 kB / 0.5751 GB, free: 8.621 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1494, allocations: 0 / 0.5751 GB, free: 8.621 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001577/0.1496, allocations: 155.2 kB / 0.5753 GB, free: 8.457 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.1499, allocations: 31.97 kB / 0.5753 GB, free: 8.426 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.152, allocations: 2.124 MB / 0.5774 GB, free: 6.164 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.1523, allocations: 0.7517 MB / 0.5781 GB, free: 5.387 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.1524, allocations: 29.52 kB / 0.5781 GB, free: 5.355 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.053e-05/0.1525, allocations: 51.42 kB / 0.5782 GB, free: 5.305 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1525, allocations: 3.938 kB / 0.5782 GB, free: 5.301 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.79/1.942, allocations: 3.382 MB / 0.5815 GB, free: 2.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/1.942, allocations: 222.3 kB / 0.5817 GB, free: 1.828 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/3.587, allocations: 0 / 0.5817 GB, free: 1.828 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance.fmu > IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)