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.001286/0.001286, 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.001276/0.001276, allocations: 194.7 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004148/0.004148, allocations: 287 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.083/1.083, allocations: 178.6 MB / 0.5073 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002696/0.002696, allocations: 100.4 kB / 0.6066 GB, free: 24.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1588, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005055/0.1639, allocations: 3.075 MB / 0.6966 GB, free: 1.121 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002923/0.1668, allocations: 1.719 MB / 0.6983 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.167, allocations: 7.938 kB / 0.6983 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.1681, allocations: 339.5 kB / 0.6986 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004807/0.1685, allocations: 215.1 kB / 0.6988 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.169, allocations: 173.8 kB / 0.699 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.1694, allocations: 323 kB / 0.6993 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.1698, allocations: 232.7 kB / 0.6995 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.17, allocations: 151.4 kB / 0.6997 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.1703, allocations: 159.5 kB / 0.6998 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.1704, allocations: 20 kB / 0.6998 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004224/0.1708, allocations: 239.6 kB / 0.7001 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1709, allocations: 107.7 kB / 0.7002 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.1711, allocations: 115.5 kB / 0.7003 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005206/0.1716, allocations: 418.8 kB / 0.7007 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.1716, allocations: 8 kB / 0.7007 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1716, allocations: 0 / 0.7007 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.1716, allocations: 0 / 0.7007 GB, free: 12.94 MB / 0.4981 GB 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.0009638/0.1726, allocations: 0.5458 MB / 0.7012 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1727, allocations: 11.97 kB / 0.7012 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.044e-05/0.1727, allocations: 58.72 kB / 0.7013 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007362/0.1735, allocations: 92.55 kB / 0.7014 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.1738, allocations: 258.5 kB / 0.7016 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.1739, allocations: 16.81 kB / 0.7016 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.422e-05/0.174, allocations: 24.56 kB / 0.7017 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.1746, allocations: 376.9 kB / 0.702 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1746, allocations: 0 / 0.702 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/0.1747, allocations: 11.98 kB / 0.702 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/0.1748, allocations: 32.41 kB / 0.7021 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005062/0.1753, allocations: 305.5 kB / 0.7024 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.1773, allocations: 1.537 MB / 0.7039 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/0.1778, allocations: 226.4 kB / 0.7041 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.1779, allocations: 120.8 kB / 0.7042 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001501/0.1781, allocations: 93.09 kB / 0.7043 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.1781, allocations: 34.5 kB / 0.7043 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.403e-06/0.1781, allocations: 0 / 0.7043 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001348/0.1795, allocations: 0.7881 MB / 0.7051 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.1796, allocations: 51.41 kB / 0.7051 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.1798, allocations: 203.6 kB / 0.7053 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.1798, allocations: 33.7 kB / 0.7053 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1799, allocations: 163.8 kB / 0.7055 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.143e-05/0.18, allocations: 67.03 kB / 0.7056 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.1801, allocations: 61.59 kB / 0.7056 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1803, allocations: 330.8 kB / 0.7059 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002009/0.1805, allocations: 107.9 kB / 0.706 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002436/0.1807, allocations: 169.9 kB / 0.7062 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.1812, allocations: 299.8 kB / 0.7065 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.1812, allocations: 0 / 0.7065 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007947/0.182, allocations: 413.4 kB / 0.7069 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.182, allocations: 11.98 kB / 0.7069 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.182, allocations: 7.938 kB / 0.7069 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004223/0.1825, allocations: 101 kB / 0.707 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.1827, allocations: 51.89 kB / 0.7071 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.1849, allocations: 1.879 MB / 0.7089 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.1851, allocations: 19.91 kB / 0.7089 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.1852, allocations: 8 kB / 0.7089 GB, free: 3.906 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.0001727/0.1853, allocations: 157.8 kB / 0.7091 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.1854, allocations: 15.81 kB / 0.7091 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005076/0.1859, allocations: 303.5 kB / 0.7094 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1859, allocations: 4 kB / 0.7094 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.1859, allocations: 0 / 0.7094 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1859, allocations: 3.938 kB / 0.7094 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009757/0.1869, allocations: 0.7043 MB / 0.7101 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1869, allocations: 4 kB / 0.7101 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000307/0.1872, allocations: 60.02 kB / 0.7101 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.1873, allocations: 7.938 kB / 0.7101 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.1873, allocations: 0 / 0.7101 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.1873, allocations: 4 kB / 0.7101 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1873, allocations: 0 / 0.7101 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006602/0.188, allocations: 0.5182 MB / 0.7106 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.1881, allocations: 124.9 kB / 0.7108 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.694e-05/0.1881, allocations: 4 kB / 0.7108 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.1883, allocations: 11.98 kB / 0.7108 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.1884, allocations: 11.98 kB / 0.7108 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.1884, allocations: 4 kB / 0.7108 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001408/0.1885, allocations: 148 kB / 0.7109 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1885, allocations: 0 / 0.7109 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003613/0.1889, allocations: 68 kB / 0.711 GB, free: 1.656 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.001047/0.19, allocations: 1.063 MB / 0.712 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008072/0.1908, allocations: 453.1 kB / 0.7125 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1908, allocations: 0 / 0.7125 GB, free: 108 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.191, allocations: 124 kB / 0.7126 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.1914, allocations: 26.28 kB / 0.7126 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.1954, allocations: 2.887 MB / 0.7154 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/0.1959, allocations: 0.7714 MB / 0.7162 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001839/0.1961, allocations: 61.89 kB / 0.7162 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.1962, allocations: 67.41 kB / 0.7163 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of SimCode: time 2.234e-06/0.1962, allocations: 0 / 0.7163 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.2271, allocations: 5.013 MB / 0.7212 GB, free: 7.188 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.576/9.803, allocations: 9.844 kB / 0.7212 GB, free: 7.18 MB / 0.5137 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)