Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.001196/0.001196, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001284/0.001284, allocations: 191.3 kB / 16.25 MB, free: 6.629 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.258/1.258, allocations: 222.9 MB / 239.9 MB, free: 4.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001959/0.001959, allocations: 302.8 kB / 290.4 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.895/0.895, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 96.75 kB / 0.5948 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1277, allocations: 86.98 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004171/0.1319, allocations: 3.76 MB / 0.6834 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.1341, allocations: 1.787 MB / 0.6852 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.1343, allocations: 15.88 kB / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006787/0.135, allocations: 240.8 kB / 0.6854 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004642/0.1354, allocations: 284 kB / 0.6857 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000403/0.1358, allocations: 222.2 kB / 0.6859 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.1363, allocations: 0.6087 MB / 0.6865 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003775/0.1367, allocations: 282.5 kB / 0.6868 GB, free: 9.762 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.137, allocations: 231.1 kB / 0.687 GB, free: 9.535 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002331/0.1372, allocations: 242.9 kB / 0.6872 GB, free: 9.297 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.1373, allocations: 32 kB / 0.6872 GB, free: 9.266 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000309/0.1376, allocations: 275.4 kB / 0.6875 GB, free: 8.996 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.931e-05/0.1377, allocations: 111.6 kB / 0.6876 GB, free: 8.887 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.1378, allocations: 214.9 kB / 0.6878 GB, free: 8.676 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004994/0.1383, allocations: 0.6073 MB / 0.6884 GB, free: 8.066 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1384, allocations: 0 / 0.6884 GB, free: 8.066 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1384, allocations: 0 / 0.6884 GB, free: 8.066 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1384, allocations: 0 / 0.6884 GB, free: 8.066 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0008781/0.1393, allocations: 0.7362 MB / 0.6891 GB, free: 7.281 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.728e-05/0.1393, allocations: 11.97 kB / 0.6891 GB, free: 7.27 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.547e-05/0.1394, allocations: 78.7 kB / 0.6892 GB, free: 7.184 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007766/0.1402, allocations: 136.2 kB / 0.6893 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003712/0.1405, allocations: 367.7 kB / 0.6897 GB, free: 6.652 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.1406, allocations: 29.02 kB / 0.6897 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.1406, allocations: 28.38 kB / 0.6897 GB, free: 6.598 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006676/0.1413, allocations: 0.5586 MB / 0.6903 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1413, allocations: 0 / 0.6903 GB, free: 5.969 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.1414, allocations: 19.98 kB / 0.6903 GB, free: 5.949 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.018e-05/0.1414, allocations: 40.55 kB / 0.6903 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005912/0.142, allocations: 405.7 kB / 0.6907 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.1442, allocations: 3.341 MB / 0.694 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005585/0.1448, allocations: 335.1 kB / 0.6943 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.1451, allocations: 176.8 kB / 0.6945 GB, free: 1.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.1451, allocations: 4 kB / 0.6945 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.1451, allocations: 42.5 kB / 0.6945 GB, free: 1.355 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 1.262e-06/0.1451, allocations: 0 / 0.6945 GB, free: 1.355 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.0017/0.1469, allocations: 1.063 MB / 0.6956 GB, free: 228 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.1469, allocations: 55.64 kB / 0.6956 GB, free: 160 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000273/0.1472, allocations: 337.6 kB / 0.6959 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1472, allocations: 29.7 kB / 0.696 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.1473, allocations: 239.6 kB / 0.6962 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.395e-05/0.1474, allocations: 106.6 kB / 0.6963 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.397e-05/0.1475, allocations: 73.98 kB / 0.6964 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1476, allocations: 350.8 kB / 0.6967 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.1479, allocations: 144.8 kB / 0.6968 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/0.1482, allocations: 300.9 kB / 0.6971 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000562/0.1487, allocations: 479.3 kB / 0.6976 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1488, allocations: 7.938 kB / 0.6976 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008418/0.1496, allocations: 0.5616 MB / 0.6981 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1496, allocations: 7.984 kB / 0.6981 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1496, allocations: 8 kB / 0.6982 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.1499, allocations: 87.02 kB / 0.6982 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.1502, allocations: 87.88 kB / 0.6983 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1502, allocations: 15.88 kB / 0.6983 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002309/0.1505, allocations: 27.97 kB / 0.6984 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.1505, allocations: 16 kB / 0.6984 GB, free: 13.14 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001457/0.1507, allocations: 178.4 kB / 0.6986 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.1507, allocations: 43.47 kB / 0.6986 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007618/0.1515, allocations: 460 kB / 0.699 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1515, allocations: 0 / 0.699 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1515, allocations: 4 kB / 0.699 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1515, allocations: 3.984 kB / 0.699 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.1527, allocations: 0.9636 MB / 0.7 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1527, allocations: 4 kB / 0.7 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.1529, allocations: 47.95 kB / 0.7 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/0.1532, allocations: 90.53 kB / 0.7001 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.913e-05/0.1532, allocations: 8 kB / 0.7001 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1532, allocations: 0 / 0.7001 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1532, allocations: 4 kB / 0.7001 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007054/0.1539, allocations: 0.5433 MB / 0.7007 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.154, allocations: 140.5 kB / 0.7008 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.765e-05/0.1541, allocations: 8 kB / 0.7008 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.1543, allocations: 27.91 kB / 0.7008 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.129e-05/0.1544, allocations: 27.91 kB / 0.7009 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.1544, allocations: 8 kB / 0.7009 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001815/0.1546, allocations: 231.2 kB / 0.7011 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1546, allocations: 3.938 kB / 0.7011 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003559/0.155, allocations: 92 kB / 0.7012 GB, free: 10.13 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009273/0.1559, allocations: 1.089 MB / 0.7022 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007425/0.1566, allocations: 0.6693 MB / 0.7029 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1567, allocations: 1.25 kB / 0.7029 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.157, allocations: 437.8 kB / 0.7033 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005971/0.1576, allocations: 126.1 kB / 0.7034 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.1615, allocations: 3.882 MB / 0.7072 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.1618, allocations: 0.8269 MB / 0.708 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002222/0.1621, allocations: 83.34 kB / 0.7081 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.1622, allocations: 127.4 kB / 0.7082 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of SimCode: time 2.8e-07/0.1622, allocations: 4 kB / 0.7082 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.247/2.409, allocations: 8.136 MB / 0.7162 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/2.41, allocations: 245.3 kB / 0.7164 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.307/4.717, allocations: 3.938 kB / 0.7164 GB, free: 10.34 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)