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.001671/0.001671, allocations: 108 kB / 15.61 MB, free: 152 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.001892/0.001892, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002236/0.002236, allocations: 274.9 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9379/0.9379, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 97.36 kB / 0.5954 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1317, allocations: 86.98 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004712/0.1364, allocations: 3.735 MB / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002576/0.139, allocations: 1.783 MB / 0.6857 GB, free: 11.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.1392, allocations: 19.88 kB / 0.6857 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007752/0.14, allocations: 271.2 kB / 0.686 GB, free: 10.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005539/0.1406, allocations: 290.5 kB / 0.6862 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000482/0.1411, allocations: 258.7 kB / 0.6865 GB, free: 10.21 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.1416, allocations: 0.601 MB / 0.6871 GB, free: 9.605 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.142, allocations: 262.5 kB / 0.6873 GB, free: 9.348 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002566/0.1422, allocations: 223.2 kB / 0.6875 GB, free: 9.129 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.1425, allocations: 238.9 kB / 0.6878 GB, free: 8.895 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.53e-05/0.1426, allocations: 28 kB / 0.6878 GB, free: 8.867 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003891/0.1429, allocations: 271.4 kB / 0.6881 GB, free: 8.602 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1431, allocations: 115.6 kB / 0.6882 GB, free: 8.488 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.1433, allocations: 218.8 kB / 0.6884 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.1438, allocations: 0.5878 MB / 0.6889 GB, free: 7.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1438, allocations: 4 kB / 0.6889 GB, free: 7.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1438, allocations: 0 / 0.6889 GB, free: 7.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1438, allocations: 0 / 0.6889 GB, free: 7.68 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.001035/0.1449, allocations: 0.7362 MB / 0.6897 GB, free: 6.895 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.1449, allocations: 8.031 kB / 0.6897 GB, free: 6.887 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.16e-05/0.145, allocations: 70.7 kB / 0.6897 GB, free: 6.809 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008503/0.1459, allocations: 132.2 kB / 0.6899 GB, free: 6.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.1463, allocations: 371.7 kB / 0.6902 GB, free: 6.277 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.1463, allocations: 21.03 kB / 0.6902 GB, free: 6.258 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.124e-05/0.1464, allocations: 32.36 kB / 0.6903 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007269/0.1471, allocations: 0.5555 MB / 0.6908 GB, free: 5.602 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.1471, allocations: 7.938 kB / 0.6908 GB, free: 5.594 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.1472, allocations: 12 kB / 0.6908 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.799e-05/0.1473, allocations: 40.53 kB / 0.6909 GB, free: 5.543 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006753/0.1479, allocations: 413.7 kB / 0.6913 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.1504, allocations: 3.345 MB / 0.6945 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006285/0.1511, allocations: 335.1 kB / 0.6949 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1514, allocations: 176.8 kB / 0.695 GB, free: 1.031 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.1514, allocations: 4 kB / 0.695 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.1515, allocations: 34.56 kB / 0.6951 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.1515, allocations: 0 / 0.6951 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001986/0.1534, allocations: 1.064 MB / 0.6961 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.1535, allocations: 59.64 kB / 0.6962 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.1538, allocations: 337.6 kB / 0.6965 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1538, allocations: 33.7 kB / 0.6965 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.154, allocations: 239.6 kB / 0.6967 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.505e-05/0.154, allocations: 98.5 kB / 0.6968 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.1542, allocations: 77.98 kB / 0.6969 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.1543, allocations: 346.8 kB / 0.6972 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.1545, allocations: 152.8 kB / 0.6974 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.1549, allocations: 290.5 kB / 0.6977 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000638/0.1555, allocations: 479 kB / 0.6981 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1556, allocations: 8 kB / 0.6981 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009604/0.1565, allocations: 0.5618 MB / 0.6987 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1565, allocations: 8 kB / 0.6987 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1566, allocations: 4 kB / 0.6987 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002935/0.1569, allocations: 90.44 kB / 0.6988 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003403/0.1572, allocations: 88.14 kB / 0.6989 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.1572, allocations: 23.91 kB / 0.6989 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.1575, allocations: 23.97 kB / 0.6989 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1575, allocations: 20 kB / 0.6989 GB, free: 12.77 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.0001698/0.1577, allocations: 184 kB / 0.6991 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/0.1578, allocations: 39.53 kB / 0.6991 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008411/0.1586, allocations: 463.5 kB / 0.6996 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.1586, allocations: 7.984 kB / 0.6996 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.1587, allocations: 0 / 0.6996 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1587, allocations: 3.984 kB / 0.6996 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.16, allocations: 0.9637 MB / 0.7005 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1601, allocations: 0 / 0.7005 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002462/0.1603, allocations: 47.91 kB / 0.7006 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002578/0.1606, allocations: 86.5 kB / 0.7007 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.1606, allocations: 4.094 kB / 0.7007 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1606, allocations: 7.938 kB / 0.7007 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1606, allocations: 0 / 0.7007 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008119/0.1614, allocations: 0.5467 MB / 0.7012 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.1616, allocations: 132.6 kB / 0.7013 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/0.1617, allocations: 11.94 kB / 0.7013 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.1619, allocations: 23.91 kB / 0.7014 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.162, allocations: 27.91 kB / 0.7014 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.162, allocations: 4 kB / 0.7014 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002192/0.1622, allocations: 239.2 kB / 0.7016 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1622, allocations: 0 / 0.7016 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004108/0.1626, allocations: 92 kB / 0.7017 GB, free: 9.754 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.001073/0.1637, allocations: 1.092 MB / 0.7028 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009433/0.1647, allocations: 0.6664 MB / 0.7034 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1647, allocations: 0 / 0.7034 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004451/0.1651, allocations: 437.7 kB / 0.7038 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007395/0.1659, allocations: 131.9 kB / 0.704 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004612/0.1705, allocations: 3.746 MB / 0.7076 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.1709, allocations: 0.827 MB / 0.7084 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002537/0.1711, allocations: 83.34 kB / 0.7085 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.1713, allocations: 123.4 kB / 0.7086 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1713, allocations: 0 / 0.7086 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04492/0.2162, allocations: 8.21 MB / 0.7166 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.76, allocations: 7.188 kB / 0.7167 GB, free: 10.24 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)