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.001056/0.001056, allocations: 108 kB / 15.6 MB, free: 132 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.001105/0.001105, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 283.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9583/0.9583, allocations: 169.3 MB / 0.4982 GB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 99.89 kB / 0.5954 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1487, allocations: 86.97 MB / 0.6803 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004751/0.1535, allocations: 3.067 MB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.156, allocations: 1.724 MB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1562, allocations: 4 kB / 0.685 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009905/0.1572, allocations: 330.7 kB / 0.6853 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.1576, allocations: 219.1 kB / 0.6855 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.158, allocations: 171.5 kB / 0.6857 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000318/0.1584, allocations: 323 kB / 0.686 GB, free: 10.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.1587, allocations: 240.7 kB / 0.6862 GB, free: 10.49 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.1589, allocations: 127.6 kB / 0.6863 GB, free: 10.37 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.1592, allocations: 167.4 kB / 0.6865 GB, free: 10.2 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.746e-05/0.1592, allocations: 20 kB / 0.6865 GB, free: 10.18 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003746/0.1596, allocations: 247.5 kB / 0.6867 GB, free: 9.941 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.1597, allocations: 103.7 kB / 0.6868 GB, free: 9.84 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.1599, allocations: 119.5 kB / 0.687 GB, free: 9.723 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004664/0.1603, allocations: 418.7 kB / 0.6874 GB, free: 9.312 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1603, allocations: 0 / 0.6874 GB, free: 9.312 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1604, allocations: 4 kB / 0.6874 GB, free: 9.309 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1604, allocations: 0 / 0.6874 GB, free: 9.309 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.0008736/0.1613, allocations: 0.5438 MB / 0.6879 GB, free: 8.719 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.1613, allocations: 12.03 kB / 0.6879 GB, free: 8.707 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.59e-05/0.1614, allocations: 62.7 kB / 0.688 GB, free: 8.637 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007073/0.1621, allocations: 92.55 kB / 0.688 GB, free: 8.547 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1624, allocations: 255.8 kB / 0.6883 GB, free: 8.258 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.1624, allocations: 16.81 kB / 0.6883 GB, free: 8.242 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.68e-05/0.1625, allocations: 32.55 kB / 0.6883 GB, free: 8.211 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005168/0.163, allocations: 373 kB / 0.6887 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1631, allocations: 3.938 kB / 0.6887 GB, free: 7.82 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.383e-05/0.1631, allocations: 12 kB / 0.6887 GB, free: 7.809 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.466e-05/0.1632, allocations: 28.42 kB / 0.6887 GB, free: 7.781 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.1637, allocations: 305.5 kB / 0.689 GB, free: 7.484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.1653, allocations: 1.537 MB / 0.6905 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004113/0.1658, allocations: 226.4 kB / 0.6907 GB, free: 5.562 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1659, allocations: 116.8 kB / 0.6909 GB, free: 5.445 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.1661, allocations: 97.08 kB / 0.6909 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.1661, allocations: 34.56 kB / 0.691 GB, free: 5.289 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.413e-06/0.1661, allocations: 0 / 0.691 GB, free: 5.289 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001186/0.1673, allocations: 0.7948 MB / 0.6918 GB, free: 4.445 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.1673, allocations: 51.41 kB / 0.6918 GB, free: 4.383 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.1675, allocations: 196.5 kB / 0.692 GB, free: 4.184 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.1676, allocations: 25.7 kB / 0.692 GB, free: 4.152 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.279e-05/0.1677, allocations: 163.9 kB / 0.6922 GB, free: 3.988 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.209e-05/0.1677, allocations: 70.95 kB / 0.6922 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.896e-05/0.1678, allocations: 57.69 kB / 0.6923 GB, free: 3.855 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1679, allocations: 330.8 kB / 0.6926 GB, free: 3.523 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1681, allocations: 115.9 kB / 0.6927 GB, free: 3.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.1683, allocations: 174.1 kB / 0.6929 GB, free: 3.219 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.1687, allocations: 295 kB / 0.6932 GB, free: 2.914 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1687, allocations: 0 / 0.6932 GB, free: 2.914 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007196/0.1694, allocations: 417.8 kB / 0.6936 GB, free: 2.496 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1695, allocations: 10.34 kB / 0.6936 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1695, allocations: 0 / 0.6936 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/0.1699, allocations: 112.9 kB / 0.6937 GB, free: 2.375 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.1701, allocations: 43.97 kB / 0.6937 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001849/0.172, allocations: 1.879 MB / 0.6956 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.1722, allocations: 24.02 kB / 0.6956 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.1722, allocations: 12 kB / 0.6956 GB, free: 284 kB / 494.1 MB 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.0001362/0.1724, allocations: 154.4 kB / 0.6957 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.1724, allocations: 15.81 kB / 0.6958 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004853/0.1729, allocations: 307.3 kB / 0.6961 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1729, allocations: 4 kB / 0.6961 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1729, allocations: 0 / 0.6961 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.173, allocations: 11.86 kB / 0.6961 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008384/0.1738, allocations: 0.699 MB / 0.6967 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1738, allocations: 4 kB / 0.6968 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.1741, allocations: 55.89 kB / 0.6968 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1741, allocations: 7.938 kB / 0.6968 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.1742, allocations: 8.062 kB / 0.6968 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1742, allocations: 4 kB / 0.6968 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1742, allocations: 0 / 0.6968 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005732/0.1748, allocations: 0.5067 MB / 0.6973 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.1749, allocations: 116.9 kB / 0.6974 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.199e-05/0.1749, allocations: 4 kB / 0.6974 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.1751, allocations: 20.05 kB / 0.6975 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.1751, allocations: 11.92 kB / 0.6975 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.1752, allocations: 15.98 kB / 0.6975 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001198/0.1753, allocations: 144.1 kB / 0.6976 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1753, allocations: 0 / 0.6976 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003581/0.1757, allocations: 68 kB / 0.6977 GB, free: 14.02 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.0008779/0.1765, allocations: 1.058 MB / 0.6987 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000701/0.1773, allocations: 442.6 kB / 0.6991 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1773, allocations: 0 / 0.6991 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.1774, allocations: 129.8 kB / 0.6993 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.1778, allocations: 38.61 kB / 0.6993 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.1813, allocations: 2.883 MB / 0.7021 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.1817, allocations: 0.7753 MB / 0.7029 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001673/0.1818, allocations: 57.91 kB / 0.7029 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.182, allocations: 63.42 kB / 0.703 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.182, allocations: 0 / 0.703 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.2067, allocations: 5.025 MB / 0.7079 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.634/8.841, allocations: 8.188 kB / 0.7079 GB, free: 3.539 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 & 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)