Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.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.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",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.0007914/0.0007947, allocations: 90.67 kB / 15.36 MB, free: 0.7344 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.005648/0.005648, allocations: 169.1 kB / 16.26 MB, free: 6.68 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.284/1.284, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001703/0.001703, allocations: 266.6 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9295/0.9295, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003804, allocations: 13 kB / 0.5988 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1406, allocations: 88.54 MB / 0.6852 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003253/0.1439, allocations: 2.752 MB / 0.6879 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.1461, allocations: 1.7 MB / 0.6896 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.119e-05/0.1462, allocations: 9.719 kB / 0.6896 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1464, allocations: 35.7 kB / 0.6896 GB, free: 10.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004043/0.1468, allocations: 199.3 kB / 0.6898 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.1472, allocations: 169.3 kB / 0.69 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004114/0.1477, allocations: 462.8 kB / 0.6904 GB, free: 9.617 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007996/0.1485, allocations: 0.5325 MB / 0.6909 GB, free: 9.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.1486, allocations: 99.62 kB / 0.691 GB, free: 8.965 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.1489, allocations: 151.5 kB / 0.6912 GB, free: 8.816 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.1489, allocations: 12 kB / 0.6912 GB, free: 8.805 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.1493, allocations: 291.4 kB / 0.6915 GB, free: 8.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.888e-05/0.1494, allocations: 87.77 kB / 0.6916 GB, free: 8.434 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.1495, allocations: 130.7 kB / 0.6917 GB, free: 8.301 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.1499, allocations: 422.6 kB / 0.6921 GB, free: 7.887 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1499, allocations: 3.938 kB / 0.6921 GB, free: 7.883 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1499, allocations: 0 / 0.6921 GB, free: 7.883 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.1499, allocations: 0.7188 kB / 0.6921 GB, free: 7.883 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007098/0.1507, allocations: 0.5044 MB / 0.6926 GB, free: 7.332 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1507, allocations: 13.53 kB / 0.6926 GB, free: 7.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.886e-05/0.1508, allocations: 54.73 kB / 0.6926 GB, free: 7.258 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008073/0.1516, allocations: 96.55 kB / 0.6927 GB, free: 7.164 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.1518, allocations: 249.9 kB / 0.693 GB, free: 6.883 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1519, allocations: 17.38 kB / 0.693 GB, free: 6.867 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.607e-05/0.152, allocations: 36.44 kB / 0.693 GB, free: 6.832 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005122/0.1525, allocations: 380.9 kB / 0.6934 GB, free: 6.438 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1525, allocations: 0 / 0.6934 GB, free: 6.438 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.1525, allocations: 11.98 kB / 0.6934 GB, free: 6.426 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.202e-05/0.1526, allocations: 32.41 kB / 0.6934 GB, free: 6.395 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.1531, allocations: 301.5 kB / 0.6937 GB, free: 6.102 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.1546, allocations: 1.533 MB / 0.6952 GB, free: 4.414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.155, allocations: 230.4 kB / 0.6954 GB, free: 4.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.1552, allocations: 124.7 kB / 0.6956 GB, free: 4.055 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001161/0.1553, allocations: 81.11 kB / 0.6956 GB, free: 3.957 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.1553, allocations: 34.56 kB / 0.6957 GB, free: 3.914 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 2.575e-06/0.1554, allocations: 3.984 kB / 0.6957 GB, free: 3.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001107/0.1565, allocations: 0.7887 MB / 0.6964 GB, free: 3.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.1565, allocations: 55.41 kB / 0.6965 GB, free: 3.004 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.1567, allocations: 194.6 kB / 0.6967 GB, free: 2.805 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.1567, allocations: 33.7 kB / 0.6967 GB, free: 2.766 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/0.1568, allocations: 159.8 kB / 0.6969 GB, free: 2.605 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.274e-05/0.1569, allocations: 71.08 kB / 0.6969 GB, free: 2.535 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.431e-05/0.1569, allocations: 29.7 kB / 0.697 GB, free: 2.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.157, allocations: 330.8 kB / 0.6973 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.1573, allocations: 111.9 kB / 0.6974 GB, free: 2.059 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.1576, allocations: 168.1 kB / 0.6975 GB, free: 1.875 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005513/0.1582, allocations: 311.2 kB / 0.6978 GB, free: 1.555 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1582, allocations: 0 / 0.6978 GB, free: 1.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001008/0.1592, allocations: 413.8 kB / 0.6982 GB, free: 1.141 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.1592, allocations: 8 kB / 0.6982 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1592, allocations: 0 / 0.6982 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000481/0.1597, allocations: 101 kB / 0.6983 GB, free: 1.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.1601, allocations: 51.89 kB / 0.6984 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.1624, allocations: 1.73 MB / 0.7001 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.1627, allocations: 24 kB / 0.7001 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.1627, allocations: 12.06 kB / 0.7001 GB, free: 15.08 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (26): * Single equations (assignments): 25 * 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 {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001941/0.1629, allocations: 162.3 kB / 0.7003 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.742e-05/0.163, allocations: 23.73 kB / 0.7003 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006856/0.1637, allocations: 293.1 kB / 0.7006 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1637, allocations: 4 kB / 0.7006 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.1637, allocations: 4 kB / 0.7006 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1637, allocations: 0 / 0.7006 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.165, allocations: 0.7029 MB / 0.7013 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.165, allocations: 4 kB / 0.7013 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004366/0.1654, allocations: 55.95 kB / 0.7013 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.1654, allocations: 4 kB / 0.7013 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.1655, allocations: 0 / 0.7013 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/0.1655, allocations: 4.062 kB / 0.7013 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.1655, allocations: 11.88 kB / 0.7013 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008832/0.1664, allocations: 0.517 MB / 0.7018 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.1665, allocations: 112.9 kB / 0.7019 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.1666, allocations: 7.984 kB / 0.702 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.1669, allocations: 19.86 kB / 0.702 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.1669, allocations: 16.05 kB / 0.702 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.167, allocations: 4 kB / 0.702 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001846/0.1672, allocations: 144.6 kB / 0.7021 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1672, allocations: 0 / 0.7021 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004992/0.1677, allocations: 68 kB / 0.7022 GB, free: 12.83 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008635/0.1686, allocations: 1.069 MB / 0.7032 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00064/0.1692, allocations: 410.4 kB / 0.7036 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1692, allocations: 448 / 0.7036 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.1694, allocations: 131.8 kB / 0.7038 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003696/0.1698, allocations: 42.84 kB / 0.7038 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004593/0.1744, allocations: 3.023 MB / 0.7068 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.1748, allocations: 0.7714 MB / 0.7075 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002781/0.1751, allocations: 57.89 kB / 0.7076 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.1753, allocations: 71.41 kB / 0.7076 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of SimCode: time 5.81e-07/0.1753, allocations: 0 / 0.7076 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01856/0.1939, allocations: 4.678 MB / 0.7122 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/0.1941, allocations: 257.4 kB / 0.7124 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/1.87, allocations: 0 / 0.7124 GB, free: 2.355 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)